com.cosylab.vdct.graphics.objects
Class TemplateEPICSMacro

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.EPICSLinkOut
                  extended by com.cosylab.vdct.graphics.objects.EPICSLinkOutIn
                      extended by com.cosylab.vdct.graphics.objects.EPICSOutLink
                          extended by com.cosylab.vdct.graphics.objects.TemplateEPICSMacro
All Implemented Interfaces:
Descriptable, InLink, Linkable, Movable, MultiInLink, OutLink, Rotatable, TemplateEPICSLink, Visitable, Popupable, Inspectable

public class TemplateEPICSMacro
extends EPICSOutLink
implements TemplateEPICSLink, Movable

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

Author:
Matej Sekoranja

Field Summary
 
Fields inherited from class com.cosylab.vdct.graphics.objects.EPICSOutLink
caString, nppString, ppString, processString
 
Fields inherited from class com.cosylab.vdct.graphics.objects.EPICSLinkOutIn
outlinks
 
Fields inherited from class com.cosylab.vdct.graphics.objects.EPICSLinkOut
font2, hasEndpoint, inlink, label2, labelLen, LINK_SEPARATOR, properties, realHalfHeight, realLabelLen
 
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
 
Fields inherited from interface com.cosylab.vdct.graphics.objects.OutLink
CONSTANT_PORT_MODE, EXTERNAL_INPUT_MODE, EXTERNAL_OUTPUT_MODE, INPUT_PORT_MODE, INVISIBLE_MODE, NORMAL_MODE, OUTPUT_PORT_MODE
 
Constructor Summary
TemplateEPICSMacro(ContainerObject parent, VDBFieldData fieldData)
          EPICSVarLink constructor comment.
 
Method Summary
 boolean checkMove(int dx, int dy)
          Insert the method's description here.
 void destroyAndRemove()
          Insert the method's description here.
 void disconnect(Linkable disconnector)
          ...
protected  void draw(java.awt.Graphics g, boolean hilited)
          Insert the method's description here.
 void fixTemplateLink()
          e.g.
 java.lang.String getDescription()
          Insert the method's description here.
 javax.swing.Icon getIcon()
          Insert the method's description here.
 java.util.Vector getItems()
          Insert the method's description here.
 java.lang.String getLabel()
          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()
           
static GUISeparator getMacroSeparator()
          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()
           
 boolean isRight()
          Insert the method's description here.
 boolean isVisible()
          Insert the method's description here.
 boolean move(int dx, int dy)
          Insert the method's description here.
 void setRight(boolean isRight)
          Insert the method's description here.
 java.lang.String toString()
          Insert the method's description here.
 void updateTemplateLink()
          Insert the method's description here.
 void valueChanged()
          Insert the method's description here.
 void visilibityChanged(boolean visible)
           
 
Methods inherited from class com.cosylab.vdct.graphics.objects.EPICSLinkOutIn
destroy, getInX, getInY, getLinkCount, getOutlinks, getOutput, getStartPoints, setOutput, sourceDestroyed, valueWithNoRecord
 
Methods inherited from class com.cosylab.vdct.graphics.objects.EPICSLinkOut
addConnector, destroyChain, fixLinkProperties, generateConnectorID, getCommentProperty, getEndPoint, getFieldSeparator, getInput, getLinkProperties, getMode, getModeNames, getName, getOutX, getOutY, getQueueCount, getRecordSeparator, getStartPoint, getTarget, getTarget, getTarget, setColor, setInput, validate, validateFontAndDimension, validateLink
 
Methods inherited from class com.cosylab.vdct.graphics.objects.EPICSLink
getID, getLayerID, isConnectable, isDisconnected, isStaticRight, rotate, setDescription, setLayerID
 
Methods inherited from class com.cosylab.vdct.graphics.objects.Field
accept, getFieldData, getHashID, getVerticalPosition, getY, revalidatePosition, revalidatePosition, setVerticalPosition
 
Methods inherited from class com.cosylab.vdct.graphics.objects.VisibleObject
forceValidation, getColor, getDsId, getFont, getHeight, getMarkedX, getMarkedY, getMoveInsideView, getParent, getRheight, getRlabelX, getRlabelY, getRootContainer, getRscale, getRwidth, getRx, getRy, getScale, getTopOffset, getVisibleColor, getWidth, getX, intersects, intersects, isDestroyed, isZoomRepaint, markPosition, paint, postDraw, postPaint, 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.inspector.Inspectable
getDsId
 

Constructor Detail

TemplateEPICSMacro

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

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

updateTemplateLink

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

Specified by:
updateTemplateLink in interface TemplateEPICSLink

fixTemplateLink

public void fixTemplateLink()
e.g. for rename updates lookup table and fixes source


getLabel

public java.lang.String getLabel()
Insert the method's description here. Creation date: (30.1.2001 16:58:58)

Specified by:
getLabel in interface Popupable
Overrides:
getLabel in class VisibleObject
Returns:
String

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 OutLink
Specified by:
isRight in interface Rotatable
Overrides:
isRight in class EPICSLinkOutIn
Returns:
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 EPICSOutLink
Parameters:
g - java.awt.Graphics
hilited - boolean

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 EPICSLinkOutIn
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 EPICSLinkOutIn
Returns:

getRightX

public int getRightX()
Specified by:
getRightX in interface InLink
Specified by:
getRightX in interface OutLink
Overrides:
getRightX in class EPICSLinkOut

getLeftX

public int getLeftX()
Specified by:
getLeftX in interface InLink
Specified by:
getLeftX in interface OutLink
Overrides:
getLeftX in class EPICSLinkOut

destroyAndRemove

public void destroyAndRemove()
Insert the method's description here. Creation date: (30.1.2001 11:59:21)

Specified by:
destroyAndRemove in interface TemplateEPICSLink

getMacroSeparator

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

Returns:
com.cosylab.vdct.vdb.GUISeparator

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
Overrides:
getProperties in class EPICSLinkOut
Returns:
com.cosylab.vdct.inspector.InspectableProperty[]

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 EPICSLinkOut
Returns:
java.lang.String

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
Overrides:
getIcon in class EPICSLinkOut
Returns:
javax.swing.Icon

getDescription

public java.lang.String getDescription()
Insert the method's description here. Creation date: (1.2.2001 12:07:15)

Specified by:
getDescription in interface Descriptable
Overrides:
getDescription in class EPICSLink
Returns:
java.lang.String

getItems

public java.util.Vector getItems()
Insert the method's description here. Creation date: (3.2.2001 11:23:59)

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

valueChanged

public void valueChanged()
Insert the method's description here. Creation date: (30.1.2001 12:24:26)

Overrides:
valueChanged in class EPICSLinkOut

visilibityChanged

public void visilibityChanged(boolean visible)
Parameters:
visibile -

isVisible

public boolean isVisible()
Description copied from class: VisibleObject
Insert the method's description here. Creation date: (30.1.2001 16:58:58)

Overrides:
isVisible in class VisibleObject
Returns:
boolean
See Also:
com.cosylab.vdct.graphics.objects.TemplateEPICSLink#isVisible()

setRight

public void setRight(boolean isRight)
Description copied from class: EPICSLink
Insert the method's description here. Creation date: (30.1.2001 16:58:58)

Specified by:
setRight in interface Rotatable
Overrides:
setRight in class EPICSLink
Parameters:
isRight - boolean
See Also:
Rotatable.setRight(boolean)

checkMove

public boolean checkMove(int dx,
                         int dy)
Description copied from interface: Movable
Insert the method's description here. Creation date: (27.12.2000 13:08:09)

Specified by:
checkMove in interface Movable
Parameters:
dx - int
dy - int
Returns:
boolean
See Also:
Movable.checkMove(int, int)

move

public boolean move(int dx,
                    int dy)
Description copied from interface: Movable
Insert the method's description here. Creation date: (25.12.2000 14:13:14)

Specified by:
move in interface Movable
Parameters:
dx - int
dy - int
Returns:
boolean
See Also:
Movable.move(int, int)

disconnect

public void disconnect(Linkable disconnector)
... Creation date: (29.1.2001 20:05:51)

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