com.cosylab.vdct.graphics.objects
Class EPICSLinkOut

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
All Implemented Interfaces:
Descriptable, Linkable, OutLink, Rotatable, Visitable, Popupable, Inspectable
Direct Known Subclasses:
EPICSLinkOutIn

public abstract class EPICSLinkOut
extends EPICSLink
implements OutLink, Popupable, Inspectable

Insert the type's description here. Creation date: (30.1.2001 12:26:07)

Author:
Matej Sekoranja

Field Summary
protected  java.awt.Font font2
           
protected  boolean hasEndpoint
           
protected  InLink inlink
           
protected  java.lang.String label2
           
protected  int labelLen
           
static char LINK_SEPARATOR
           
protected  LinkProperties properties
           
protected  int realHalfHeight
           
protected  int 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.OutLink
CONSTANT_PORT_MODE, EXTERNAL_INPUT_MODE, EXTERNAL_OUTPUT_MODE, INPUT_PORT_MODE, INVISIBLE_MODE, NORMAL_MODE, OUTPUT_PORT_MODE
 
Constructor Summary
protected EPICSLinkOut(ContainerObject parent, VDBFieldData fieldData)
          EPICSOutLink constructor comment.
 
Method Summary
 Connector addConnector()
          Insert the method's description here.
 void destroy()
          Insert the method's description here.
static void destroyChain(Linkable link, OutLink out)
          Insert the method's description here.
 void disconnect(Linkable disconnector)
          Insert the method's description here.
 void fixLinkProperties()
          Insert the method's description here.
static java.lang.String generateConnectorID(EPICSLink outlink)
          Insert the method's description here.
 InspectableProperty getCommentProperty()
          Insert the method's description here.
static InLink getEndPoint(Linkable link)
          Insert the method's description here.
static GUISeparator getFieldSeparator()
          Insert the method's description here.
 javax.swing.Icon getIcon()
          Insert the method's description here.
 InLink getInput()
          Insert the method's description here.
 java.util.Vector getItems()
          Insert the method's description here.
 int getLeftX()
           
 LinkProperties getLinkProperties()
          Insert the method's description here.
 int getMode()
          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.
 int getOutX()
          Insert the method's description here.
 int getOutY()
          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 getQueueCount()
          Insert the method's description here.
static GUISeparator getRecordSeparator()
          Insert the method's description here.
 int getRightX()
           
static OutLink getStartPoint(Linkable link)
          Insert the method's description here.
static InLink getTarget(java.lang.Object dsId, LinkProperties link)
           
static InLink getTarget(java.lang.Object dsId, LinkProperties link, boolean allowLinkOutAsTarget)
           
static InLink getTarget(java.lang.Object dsId, LinkProperties link, boolean allowLinkOutAsTarget, boolean doNotSearchRecordFields)
          get/create target link field Creation date: (30.1.2001 13:40:51)
 boolean isRight()
          Insert the method's description here.
 void setColor(java.awt.Color newColor)
          Insert the method's description here.
 void setInput(InLink input)
          Insert the method's description here.
 void sourceDestroyed()
          Called when VARIABLE link (source) was destroyed
 java.lang.String toString()
          Insert the method's description here.
 void validate()
          Insert the method's description here.
protected  void validateFontAndDimension(double Rscale, int rwidth, int rheight)
           
 void validateLink()
           
 void valueChanged()
          Insert the method's description here.
 void valueWithNoRecord()
           
 
Methods inherited from class com.cosylab.vdct.graphics.objects.EPICSLink
getDescription, getID, getLayerID, isConnectable, isDisconnected, isStaticRight, rotate, setDescription, setLayerID, setRight
 
Methods inherited from class com.cosylab.vdct.graphics.objects.Field
accept, draw, getFieldData, getHashID, getVerticalPosition, getY, revalidatePosition, revalidatePosition, setVerticalPosition
 
Methods inherited from class com.cosylab.vdct.graphics.objects.VisibleObject
forceValidation, getColor, getDsId, getFont, getHeight, getLabel, getLeftOffset, getMarkedX, getMarkedY, getMoveInsideView, getParent, getRheight, getRightOffset, getRlabelX, getRlabelY, getRootContainer, getRscale, getRwidth, getRx, getRy, getScale, getTopOffset, getVisibleColor, getWidth, getX, intersects, intersects, isDestroyed, isVisible, 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.graphics.popup.Popupable
getLabel
 
Methods inherited from interface com.cosylab.vdct.inspector.Inspectable
getDsId
 

Field Detail

LINK_SEPARATOR

public static final char LINK_SEPARATOR
See Also:
Constant Field Values

inlink

protected InLink inlink

properties

protected LinkProperties properties

label2

protected java.lang.String label2

font2

protected java.awt.Font font2

realLabelLen

protected int realLabelLen

labelLen

protected int labelLen

realHalfHeight

protected int realHalfHeight

hasEndpoint

protected boolean hasEndpoint
Constructor Detail

EPICSLinkOut

protected EPICSLinkOut(ContainerObject parent,
                       VDBFieldData fieldData)
EPICSOutLink constructor comment.

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

addConnector

public Connector addConnector()
Insert the method's description here. Creation date: (4.2.2001 12:50:51)


sourceDestroyed

public void sourceDestroyed()
Called when VARIABLE link (source) was destroyed


destroy

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

Overrides:
destroy in class EPICSLink

destroyChain

public static void destroyChain(Linkable link,
                                OutLink out)
Insert the method's description here. Creation date: (4.2.2001 21:32:42)

Parameters:
link - first inlink of the out
out - source of the link

disconnect

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

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

fixLinkProperties

public void fixLinkProperties()
Insert the method's description here. Creation date: (30.1.2001 12:25:44)

Specified by:
fixLinkProperties in class EPICSLink

generateConnectorID

public static java.lang.String generateConnectorID(EPICSLink outlink)
Insert the method's description here. Creation date: (4.2.2001 13:01:01)

Parameters:
outlink - com.cosylab.vdct.graphics.objects.EPICSLinkOut
Returns:
java.lang.String

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

getEndPoint

public static InLink getEndPoint(Linkable link)
Insert the method's description here. Creation date: (1.2.2001 11:26:33)

Parameters:
link - com.cosylab.vdct.graphics.objects.Linkable
Returns:
com.cosylab.vdct.graphics.objects.InLink

getFieldSeparator

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

Returns:
com.cosylab.vdct.vdb.GUISeparator

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

getInput

public InLink getInput()
Insert the method's description here. Creation date: (29.1.2001 22:22:14)

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

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
Returns:
java.util.Vector

getLinkProperties

public LinkProperties getLinkProperties()
Insert the method's description here. Creation date: (30.1.2001 12:23:39)

Returns:
com.cosylab.vdct.vdb.LinkProperties

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

getOutX

public int getOutX()
Insert the method's description here. Creation date: (29.1.2001 22:22:13)

Specified by:
getOutX in interface OutLink
Returns:
int

getOutY

public int getOutY()
Insert the method's description here. Creation date: (29.1.2001 22:22:13)

Specified by:
getOutY in interface OutLink
Returns:
int

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[]

getQueueCount

public int getQueueCount()
Insert the method's description here. Creation date: (30.1.2001 14:48:39)

Specified by:
getQueueCount in interface OutLink
Returns:
int

getRecordSeparator

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

Returns:
com.cosylab.vdct.vdb.GUISeparator

getStartPoint

public static OutLink getStartPoint(Linkable link)
Insert the method's description here. Creation date: (1.2.2001 11:25:46)

Parameters:
link - com.cosylab.vdct.graphics.objects.Linkable
Returns:
com.cosylab.vdct.graphics.objects.OutLink

getTarget

public static InLink getTarget(java.lang.Object dsId,
                               LinkProperties link)

getTarget

public static InLink getTarget(java.lang.Object dsId,
                               LinkProperties link,
                               boolean allowLinkOutAsTarget)

getTarget

public static InLink getTarget(java.lang.Object dsId,
                               LinkProperties link,
                               boolean allowLinkOutAsTarget,
                               boolean doNotSearchRecordFields)
get/create target link field Creation date: (30.1.2001 13:40:51)

Parameters:
link - com.cosylab.vdct.vdb.LinkProperties
Returns:
com.cosylab.vdct.graphics.objects.InLink

isRight

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

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

setColor

public void setColor(java.awt.Color newColor)
Insert the method's description here. Creation date: (4.2.2001 12:46:30)

Overrides:
setColor in class VisibleObject
Parameters:
newColor - java.awt.Color

setInput

public void setInput(InLink input)
Insert the method's description here. Creation date: (29.1.2001 22:22:13)

Specified by:
setInput in interface OutLink

toString

public java.lang.String toString()
Insert the method's description here. Creation date: (1.2.2001 22:31:14)

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

valueWithNoRecord

public void valueWithNoRecord()

validateFontAndDimension

protected void validateFontAndDimension(double Rscale,
                                        int rwidth,
                                        int rheight)

validate

public void validate()
Insert the method's description here. Creation date: (31.1.2001 18:27:35)

Overrides:
validate in class EPICSLink

valueChanged

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


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()

getMode

public int getMode()
Description copied from interface: OutLink
Insert the method's description here. Creation date: (29.1.2001 17:53:09)

Specified by:
getMode in interface OutLink
Returns:
int
See Also:
OutLink.getMode()

validateLink

public void validateLink()
Specified by:
validateLink in interface OutLink
See Also:
OutLink.validateLink()

getRightX

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

getLeftX

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