com.cosylab.vdct.graphics.objects
Class EPICSVarLink

java.lang.Object
  extended by com.cosylab.vdct.graphics.objects.VisibleObject
      extended by com.cosylab.vdct.graphics.objects.Field
          extended by com.cosylab.vdct.graphics.objects.EPICSLink
              extended by com.cosylab.vdct.graphics.objects.EPICSVarLink
All Implemented Interfaces:
Descriptable, InLink, Linkable, MultiInLink, Rotatable, Visitable, Popupable, Inspectable
Direct Known Subclasses:
EPICSVarOutLink, TemplateEPICSPort

public class EPICSVarLink
extends EPICSLink
implements MultiInLink, Popupable, Inspectable

Insert the type's description here. Creation date: (29.1.2001 21:27:30)

Author:
Matej Sekoranja

Field Summary
protected  boolean drawOnlyOneSided
           
protected  java.util.Vector outlinks
           
 
Fields inherited from class com.cosylab.vdct.graphics.objects.EPICSLink
disconnected, r, rtailLen
 
Fields inherited from class com.cosylab.vdct.graphics.objects.Field
fieldData
 
Fields inherited from class com.cosylab.vdct.graphics.objects.VisibleObject
x, y, zoomImage
 
Fields inherited from interface com.cosylab.vdct.graphics.objects.InLink
INPUT_MACRO_MODE, OUTPUT_MACRO_MODE
 
Constructor Summary
EPICSVarLink(ContainerObject parent, VDBFieldData fieldData)
          EPICSVarLink constructor comment.
 
Method Summary
 void destroy()
          Insert the method's description here.
 void disconnect(Linkable disconnector)
          Insert the method's description here.
protected  void draw(java.awt.Graphics g, boolean hilited)
          Insert the method's description here.
protected  void drawOneSided(java.awt.Graphics g, boolean hilited)
          Insert the method's description here.
 void fixLinkProperties()
           
 InspectableProperty getCommentProperty()
          Insert the method's description here.
 javax.swing.Icon getIcon()
          Insert the method's description here.
 int getInX()
          Insert the method's description here.
 int getInY()
          Insert the method's description here.
 java.util.Vector getItems()
          Insert the method's description here.
 int getLeftOffset()
          Returns the offset in pixels(the length of additional objects (arrows, strings) drawn on the left side of this object.
 int getLeftX()
           
 int getLinkCount()
          Insert the method's description here.
static GUISeparator getLinkSeparator()
          Insert the method's description here.
 java.util.ArrayList getModeNames()
          Obtains list of all mode names for this particular property.
 java.lang.String getName()
          Insert the method's description here.
 java.util.Vector getOutlinks()
           
 OutLink getOutput()
          Insert the method's description here.
 InspectableProperty[] getProperties(int mode, boolean spreadsheet)
          Return properties to be inspected Creation date: (1.2.2001 22:22:37)
 int getRightOffset()
          Returns the offset in pixels(the length of additional objects (arrows, strings) drawn on the right side of this object.
 int getRightX()
           
 java.util.Vector getStartPoints()
          Insert the method's description here.
 boolean isRight()
          Insert the method's description here.
 void revalidateOutlinkConnectors()
           
 void revalidatePosition()
          Insert the method's description here.
 void setOutput(OutLink output, OutLink prevOutput)
          Insert the method's description here.
 java.lang.String toString()
          Insert the method's description here.
 void validateLink()
          Insert the method's description here.
 
Methods inherited from class com.cosylab.vdct.graphics.objects.EPICSLink
getDescription, getID, getLayerID, isConnectable, isDisconnected, isStaticRight, rotate, setDescription, setLayerID, setRight, validate
 
Methods inherited from class com.cosylab.vdct.graphics.objects.Field
accept, getFieldData, getHashID, getVerticalPosition, getY, revalidatePosition, setVerticalPosition
 
Methods inherited from class com.cosylab.vdct.graphics.objects.VisibleObject
forceValidation, getColor, getDsId, getFont, getHeight, getLabel, getMarkedX, getMarkedY, getMoveInsideView, getParent, getRheight, getRlabelX, getRlabelY, getRootContainer, getRscale, getRwidth, getRx, getRy, getScale, getTopOffset, getVisibleColor, getWidth, getX, intersects, intersects, isDestroyed, isVisible, isZoomRepaint, markPosition, paint, postDraw, postPaint, setColor, setDestroyed, setFont, setHeight, setLabel, setParent, setRheight, setRlabelX, setRlabelY, setRwidth, setRx, setRy, setScale, setWidth, setX, setY, setZoomRepaint, snapToGrid, unconditionalValidation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.cosylab.vdct.graphics.objects.Linkable
getID, getLayerID, isConnectable, isDisconnected, setLayerID
 
Methods inherited from interface com.cosylab.vdct.graphics.popup.Popupable
getLabel
 
Methods inherited from interface com.cosylab.vdct.inspector.Inspectable
getDsId
 

Field Detail

outlinks

protected java.util.Vector outlinks

drawOnlyOneSided

protected boolean drawOnlyOneSided
Constructor Detail

EPICSVarLink

public EPICSVarLink(ContainerObject parent,
                    VDBFieldData fieldData)
EPICSVarLink constructor comment.

Parameters:
parent - com.cosylab.vdct.graphics.objects.ContainerObject
fieldData - com.cosylab.vdct.vdb.VDBFieldData
Method Detail

destroy

public void destroy()
Insert the method's description here. Creation date: (29.1.2001 21:59:34)

Overrides:
destroy in class EPICSLink

disconnect

public void disconnect(Linkable disconnector)
Insert the method's description here. Creation date: (29.1.2001 21:23:04)

Specified by:
disconnect in interface Linkable
Overrides:
disconnect in class EPICSLink

drawOneSided

protected void drawOneSided(java.awt.Graphics g,
                            boolean hilited)
Insert the method's description here. Creation date: (29.1.2001 22:10:37)

Parameters:
g - java.awt.Graphics
hilited - boolean

draw

protected void draw(java.awt.Graphics g,
                    boolean hilited)
Insert the method's description here. Creation date: (29.1.2001 22:10:37)

Overrides:
draw in class Field
Parameters:
g - java.awt.Graphics
hilited - boolean

getCommentProperty

public InspectableProperty getCommentProperty()
Insert the method's description here. Creation date: (1.2.2001 22:22:37)

Specified by:
getCommentProperty in interface Inspectable
Returns:
com.cosylab.vdct.inspector.InspectableProperty

getIcon

public javax.swing.Icon getIcon()
Insert the method's description here. Creation date: (1.2.2001 22:22:37)

Specified by:
getIcon in interface Inspectable
Returns:
javax.swing.Icon

getInX

public int getInX()
Insert the method's description here. Creation date: (29.1.2001 21:34:27)

Specified by:
getInX in interface InLink
Returns:
int

getInY

public int getInY()
Insert the method's description here. Creation date: (29.1.2001 21:34:27)

Specified by:
getInY in interface InLink
Returns:
int

getItems

public java.util.Vector getItems()
Insert the method's description here. Creation date: (4.5.2001 8:00:56)

Specified by:
getItems in interface Popupable
Returns:
java.util.Vector

getLinkCount

public int getLinkCount()
Insert the method's description here. Creation date: (4.5.2001 9:53:35)

Specified by:
getLinkCount in interface MultiInLink
Returns:
java.util.Vector

getLinkSeparator

public static GUISeparator getLinkSeparator()
Insert the method's description here. Creation date: (3.2.2001 13:07:04)

Returns:
com.cosylab.vdct.vdb.GUISeparator

getName

public java.lang.String getName()
Insert the method's description here. Creation date: (1.2.2001 22:22:37)

Specified by:
getName in interface Inspectable
Returns:
java.lang.String

getOutput

public OutLink getOutput()
Insert the method's description here. Creation date: (29.1.2001 21:34:27)

Specified by:
getOutput in interface InLink
Returns:
com.cosylab.vdct.graphics.objects.OutLink

getProperties

public InspectableProperty[] getProperties(int mode,
                                           boolean spreadsheet)
Return properties to be inspected Creation date: (1.2.2001 22:22:37)

Specified by:
getProperties in interface Inspectable
Returns:
com.cosylab.vdct.inspector.InspectableProperty[]

getStartPoints

public java.util.Vector getStartPoints()
Insert the method's description here. Creation date: (5.2.2001 12:10:18)

Specified by:
getStartPoints in interface MultiInLink
Returns:
java.util.Vector

isRight

public boolean isRight()
Insert the method's description here. Creation date: (30.1.2001 16:58:58)

Specified by:
isRight in interface InLink
Specified by:
isRight in interface Rotatable
Overrides:
isRight in class EPICSLink
Returns:
boolean

setOutput

public void setOutput(OutLink output,
                      OutLink prevOutput)
Insert the method's description here. Creation date: (29.1.2001 21:34:27)

Specified by:
setOutput in interface InLink
Parameters:
output - com.cosylab.vdct.graphics.objects.OutLink
prevOutput - com.cosylab.vdct.graphics.objects.OutLink

toString

public java.lang.String toString()
Insert the method's description here. Creation date: (4.5.2001 9:20:14)

Specified by:
toString in interface Inspectable
Overrides:
toString in class java.lang.Object
Returns:
java.lang.String

validateLink

public void validateLink()
Insert the method's description here. Creation date: (24.4.2001 19:08:57)


getModeNames

public java.util.ArrayList getModeNames()
Description copied from interface: Inspectable
Obtains list of all mode names for this particular property. Modes are numbered from 0-n. Creation date: (11.1.2001 21:30:04)

Specified by:
getModeNames in interface Inspectable
Returns:
java.util.ArrayList array of mode names - obtained using toString().
See Also:
Inspectable.getModeNames()

fixLinkProperties

public void fixLinkProperties()
Specified by:
fixLinkProperties in class EPICSLink
See Also:
EPICSLink.fixLinkProperties()

revalidatePosition

public void revalidatePosition()
Description copied from class: Field
Insert the method's description here. Creation date: (21.12.2000 21:22:45)

Overrides:
revalidatePosition in class Field

revalidateOutlinkConnectors

public void revalidateOutlinkConnectors()

getRightX

public int getRightX()
Specified by:
getRightX in interface InLink

getLeftX

public int getLeftX()
Specified by:
getLeftX in interface InLink

getOutlinks

public java.util.Vector getOutlinks()
Specified by:
getOutlinks in interface MultiInLink

getLeftOffset

public int getLeftOffset()
Description copied from class: VisibleObject
Returns the offset in pixels(the length of additional objects (arrows, strings) drawn on the left side of this object.

Overrides:
getLeftOffset in class VisibleObject
Returns:

getRightOffset

public int getRightOffset()
Description copied from class: VisibleObject
Returns the offset in pixels(the length of additional objects (arrows, strings) drawn on the right side of this object.

Overrides:
getRightOffset in class VisibleObject
Returns: