Class LinkManagerObject
- java.lang.Object
-
- com.cosylab.vdct.graphics.objects.VisibleObject
-
- com.cosylab.vdct.graphics.objects.ContainerObject
-
- com.cosylab.vdct.graphics.objects.LinkManagerObject
-
- All Implemented Interfaces:
Hub
,Visitable
,Popupable
,Inspectable
public abstract class LinkManagerObject extends ContainerObject implements Hub, Inspectable, Popupable
Insert the type's description here. Creation date: (21.12.2000 20:46:35)- Author:
- Matej Sekoranja
-
-
Field Summary
Fields Modifier and Type Field Description static String
fwdlinkString
static String
inlinkString
static String
nullString
static String
outlinkString
static String
varlinkPortString
static String
varlinkString
-
Fields inherited from class com.cosylab.vdct.graphics.objects.ContainerObject
subObjects, subObjectsV, useHashtable
-
Fields inherited from class com.cosylab.vdct.graphics.objects.VisibleObject
x, y, zoomImage
-
-
Constructor Summary
Constructors Constructor Description LinkManagerObject(ContainerObject parent)
LinkManagerObject constructor comment.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addInvalidLink(EPICSLink field)
static void
checkIfMacroCandidate(Object dsId, VDBFieldData field, HashMap macros)
protected void
destroyFields()
Insert the method's description here.abstract void
fieldChanged(VDBFieldData field)
Insert the method's description here.void
fixEPICSOutLinks(Enumeration e, String prevGroup, String group)
Insert the method's description here.static void
fixLink(EPICSLinkOutIn linkoutin)
static void
fixLink(EPICSVarLink varlink)
static void
fixLink_(EPICSVarLink varlink)
void
fixLinks()
Goes through link fields (in, out, var, fwd) and cheks if ther are OK, if not it fixes it When record is moved, renames, etc.void
fixLinks_()
static void
fixMacroLink(Macro macro)
!!!! duplicationabstract VDBFieldData
getField(String name)
Vector
getLinkMenus(Enumeration vdbFields)
Insert the method's description here.LinkSource
getTargetLink()
Returns the targetLink.boolean
isFirstField(Field field)
Insert the method's description here.boolean
isLastField(Field field)
Insert the method's description here.static boolean
isSoftwareLink(VDBFieldData field)
Returns true if link is software link Creation date: (30.1.2001 9:36:15)boolean
manageLink(VDBFieldData field)
Insert the method's description here.boolean
manageLink_(VDBFieldData field)
Insert the method's description here.void
moveConnectors(int dx, int dy)
Insert the method's description here.void
moveFieldDown(Field field)
Insert the method's description here.void
moveFieldUp(Field field)
Insert the method's description here.void
postDraw(Graphics g, boolean hilited)
Insert the method's description here.void
removeInvalidLink(EPICSLink field)
abstract void
revalidateFieldsPosition()
Insert the method's description here.void
setTargetLink(LinkSource targetLink)
Sets the targetLink.-
Methods inherited from class com.cosylab.vdct.graphics.objects.ContainerObject
addSubObject, addSubObject, addSubObject, clear, containsObject, getRootContainer, getSubObject, getSubObjects, getSubObjectsV, removeObject, updateFields
-
Methods inherited from class com.cosylab.vdct.graphics.objects.VisibleObject
destroy, draw, forceValidation, getColor, getDsId, getFont, getHashID, getHeight, getLabel, getLeftOffset, getMarkedX, getMarkedY, getMoveInsideView, getParent, getRheight, getRightOffset, getRlabelX, getRlabelY, getRscale, getRwidth, getRx, getRy, getScale, getTopOffset, getVisibleColor, getWidth, getX, getY, intersects, intersects, isDestroyed, isVisible, isZoomRepaint, markPosition, paint, postPaint, revalidatePosition, setColor, setDestroyed, setFont, setHeight, setLabel, setParent, setRheight, setRlabelX, setRlabelY, setRwidth, setRx, setRy, setScale, setWidth, setX, setY, setZoomRepaint, snapToGrid, unconditionalValidation, validate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.cosylab.vdct.graphics.objects.Hub
addLink, removeLink
-
Methods inherited from interface com.cosylab.vdct.inspector.Inspectable
getCommentProperty, getDsId, getIcon, getModeNames, getName, getProperties, toString
-
-
-
-
Field Detail
-
nullString
public static final String nullString
- See Also:
- Constant Field Values
-
inlinkString
public static final String inlinkString
- See Also:
- Constant Field Values
-
outlinkString
public static final String outlinkString
- See Also:
- Constant Field Values
-
fwdlinkString
public static final String fwdlinkString
- See Also:
- Constant Field Values
-
varlinkString
public static final String varlinkString
- See Also:
- Constant Field Values
-
varlinkPortString
public static final String varlinkPortString
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LinkManagerObject
public LinkManagerObject(ContainerObject parent)
LinkManagerObject constructor comment.- Parameters:
parent
- com.cosylab.vdct.graphics.objects.ContainerObject
-
-
Method Detail
-
addInvalidLink
public void addInvalidLink(EPICSLink field)
- Parameters:
field
- field
-
removeInvalidLink
public void removeInvalidLink(EPICSLink field)
- Parameters:
field
- field
-
getField
public abstract VDBFieldData getField(String name)
- Parameters:
name
- name- Returns:
- something
-
fieldChanged
public abstract void fieldChanged(VDBFieldData field)
Insert the method's description here. Creation date: (27.1.2001 16:12:03)- Parameters:
field
- com.cosylab.vdct.vdb.VDBFieldData
-
fixEPICSOutLinks
public void fixEPICSOutLinks(Enumeration e, String prevGroup, String group)
Insert the method's description here. Creation date: (5.2.2001 9:42:29)- Parameters:
e
- java.util.Enumeration list of VDBFieldData fieldsprevGroup
- java.lang.Stringgroup
- java.lang.String
-
fixLinks
public void fixLinks()
Goes through link fields (in, out, var, fwd) and cheks if ther are OK, if not it fixes it When record is moved, renames, etc. value of in, out, fwd should be changed, but visual link is still preserved :) (linked list). It compares start point end end point and ... Creation date: (2.5.2001 19:37:46)
-
fixLinks_
public void fixLinks_()
-
fixLink
public static void fixLink(EPICSVarLink varlink)
- Parameters:
varlink
- varlink
-
fixMacroLink
public static void fixMacroLink(Macro macro)
!!!! duplication- Parameters:
macro
- macro
-
fixLink
public static void fixLink(EPICSLinkOutIn linkoutin)
- Parameters:
linkoutin
- linkoutin
-
fixLink_
public static void fixLink_(EPICSVarLink varlink)
- Parameters:
varlink
- varlink
-
isSoftwareLink
public static boolean isSoftwareLink(VDBFieldData field)
Returns true if link is software link Creation date: (30.1.2001 9:36:15)- Parameters:
field
- com.cosylab.vdct.vdb.VDBFieldData- Returns:
- boolean
-
manageLink
public boolean manageLink(VDBFieldData field)
Insert the method's description here. Creation date: (30.1.2001 9:36:15)- Parameters:
field
- com.cosylab.vdct.vdb.VDBFieldData- Returns:
- boolean
-
manageLink_
public boolean manageLink_(VDBFieldData field)
Insert the method's description here. Creation date: (30.1.2001 9:36:15)- Parameters:
field
- com.cosylab.vdct.vdb.VDBFieldData- Returns:
- boolean
-
moveConnectors
public void moveConnectors(int dx, int dy)
Insert the method's description here. Creation date: (1.2.2001 17:38:36)- Parameters:
dx
- intdy
- int
-
postDraw
public void postDraw(Graphics g, boolean hilited)
Insert the method's description here. Creation date: (21.12.2000 21:58:56)- Overrides:
postDraw
in classVisibleObject
- Parameters:
g
- java.awt.Graphicshilited
- boolean
-
getLinkMenus
public Vector getLinkMenus(Enumeration vdbFields)
Insert the method's description here. Creation date: (2.2.2001 20:31:29)- Parameters:
vdbFields
- vdbFields- Returns:
- java.util.Vector
-
destroyFields
protected void destroyFields()
Insert the method's description here. Creation date: (30.1.2001 11:59:54)
-
getTargetLink
public LinkSource getTargetLink()
Returns the targetLink.- Returns:
- LinkSource
-
setTargetLink
public void setTargetLink(LinkSource targetLink)
Sets the targetLink.- Parameters:
targetLink
- The targetLink to set
-
checkIfMacroCandidate
public static void checkIfMacroCandidate(Object dsId, VDBFieldData field, HashMap macros)
- Parameters:
dsId
- dsIdfield
- fieldmacros
- macros
-
isFirstField
public boolean isFirstField(Field field)
Insert the method's description here. Creation date: (3.5.2001 22:54:43)- Parameters:
field
- com.cosylab.vdct.graphics.objects.Field- Returns:
- boolean
-
isLastField
public boolean isLastField(Field field)
Insert the method's description here. Creation date: (3.5.2001 22:53:47)- Parameters:
field
- com.cosylab.vdct.graphics.objects.Field- Returns:
- something
-
moveFieldDown
public void moveFieldDown(Field field)
Insert the method's description here. Creation date: (3.5.2001 22:36:11)- Parameters:
field
- com.cosylab.vdct.graphics.objects.Field
-
moveFieldUp
public void moveFieldUp(Field field)
Insert the method's description here. Creation date: (3.5.2001 22:36:11)- Parameters:
field
- com.cosylab.vdct.graphics.objects.Field
-
revalidateFieldsPosition
public abstract void revalidateFieldsPosition()
Insert the method's description here. Creation date: (3.5.2001 22:36:11)
-
-