Class Record
- java.lang.Object
-
- com.cosylab.vdct.graphics.objects.VisibleObject
-
- com.cosylab.vdct.graphics.objects.ContainerObject
-
- com.cosylab.vdct.graphics.objects.LinkManagerObject
-
- com.cosylab.vdct.graphics.objects.Record
-
- All Implemented Interfaces:
Clipboardable,Descriptable,Flexible,Hub,InLink,Linkable,Morphable,Movable,MultiInLink,Rotatable,SaveObject,Selectable,SelectableComponents,Visitable,Popupable,Inspectable
public class Record extends LinkManagerObject implements Clipboardable, Descriptable, Flexible, Hub, Morphable, Movable, MultiInLink, Rotatable, Selectable, Popupable, Inspectable, SaveObject, SelectableComponents
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 protected VectorchangedFieldsstatic intDBD_ORDERprotected ColordebugValueColorprotected booleandisconnectedprotected FontfieldFontstatic intGUI_GROUP_ORDERprotected Stringlabel2protected Vectoroutlinksprotected VDBRecordDatarecordDataprotected intrfieldLabelXprotected intrfieldLabelYprotected doublerfieldRowHeightprotected intrtypeLabelXprotected intrtypeLabelYstatic intSORT_ORDERprotected Stringtimestampprotected FonttimestampFontprotected inttimestampXprotected inttimestampYprotected FonttypeFontprotected Stringvalueprotected FontvalueFontprotected intvalueXprotected intvalueY-
Fields inherited from class com.cosylab.vdct.graphics.objects.LinkManagerObject
fwdlinkString, inlinkString, nullString, outlinkString, varlinkPortString, 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
-
Fields inherited from interface com.cosylab.vdct.graphics.objects.InLink
INPUT_MACRO_MODE, OUTPUT_MACRO_MODE
-
-
Constructor Summary
Constructors Constructor Description Record(ContainerObject parent, VDBRecordData recordData, int x, int y)Group constructor comment.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void_fixEPICSInLinks(String oldRecordName, String newRecordName)Insert the method's description here.voidaccept(Visitor visitor)Insert the method's description here.voidaddLink(Linkable link)Insert the method's description here.booleancheckMove(int dx, int dy)Insert the method's description here.FlexiblecopyToGroup(Object dsId, String group)Insert the method's description here.voiddestroy()Insert the method's description here.voiddisconnect(Linkable disconnector)Insert the method's description here.protected voiddraw(Graphics g, boolean hilited)Insert the method's description here.protected static voiddrawDebugTimeout(Graphics g, int hour, int minute, int x0, int y0, int w, int h)Draws a timeout clock.voidfieldChanged(VDBFieldData field)Insert the method's description here.voidfixEPICSOutLinks(String prevGroup, String group)Insert the method's description here.voidfixEPICSOutLinksOnCopy(String prevGroup, String group)Insert the method's description here.voidfixLinks()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).voidgenerateMacros(HashMap macros)static GUISeparatorgetAlphaSeparator()Insert the method's description here.InspectablePropertygetCommentProperty()Insert the method's description here.static GUISeparatorgetDBDSeparator()Insert the method's description here.StringgetDescription()Insert the method's description here.VDBFieldDatagetField(String name)StringgetFlexibleName()Insert the method's description here.StringgetHashID()Insert the method's description here.intgetHeight()Insert the method's description here.IcongetIcon()Insert the method's description here.StringgetID()Insert the method's description here.intgetInX()Insert the method's description here.intgetInY()Insert the method's description here.VectorgetItems()Insert the method's description here.StringgetLayerID()Insert the method's description here.intgetLeftX()intgetLinkCount()Insert the method's description here.ArrayListgetModeNames()Obtains list of all mode names for this particular property.StringgetName()Insert the method's description here.VectorgetOutlinks()OutLinkgetOutput()Insert the method's description here.InspectableProperty[]getProperties(int mode, boolean spreadsheet)Return properties to be inspected Creation date: (11.1.2001 21:43:31)VDBRecordDatagetRecordData()Insert the method's description here.intgetRightX()VectorgetStartPoints()Insert the method's description here.Object[]getTargets()StringgetType()VisibleObjecthiliteComponentsCheck(int x, int y)Returned value inicates change Creation date: (21.12.2000 22:21:12)EPICSLinkinitializeLinkField(VDBFieldData field)Insert the method's description here.VisibleObjectintersects(int px, int py)Default impmlementation for square (must be rescaled) Creation date: (19.12.2000 20:20:20)booleanisConnectable()Insert the method's description here.booleanisDisconnected()Insert the method's description here.booleanisOldVisible(VDBFieldData field)booleanisRight()Insert the method's description here.booleanisVisible(VDBFieldData field)voidmanageLinks()Insert the method's description here.booleanmorph(String newType)Insert the method's description here.booleanmove(int dx, int dy)Insert the method's description here.booleanmoveAsMuchAsPossibleTopUp(int dx, int dy)NOTE: only dy < 0 is checkedbooleanmoveToGroup(Object dsId, String group)Insert the method's description here.voidremoveLink(Linkable link)Insert the method's description here.booleanrename(Object dsId, String newName)Insert the method's description here.voidresetValidationsCounter()voidrevalidateFieldsPosition()Insert the method's description here.voidrevalidateOutlinkConnectors()voidrevalidatePosition()Insert the method's description here.voidrotate()Insert the method's description here.booleanselectAllComponents()Insert the method's description here.booleanselectComponentsCheck(int x1, int y1, int x2, int y2)Returned value inicates change Creation date: (21.12.2000 22:21:12)voidsetDescription(String description)Insert the method's description here.voidsetLayerID(String id)Insert the method's description here.voidsetOutput(OutLink output, OutLink prevOutput)Insert the method's description here.voidsetRecordData(VDBRecordData recordData)voidsetRight(boolean state)Insert the method's description here.voidsnapToGrid()Snap to grid.StringtoString()Insert the method's description here.voidupdateFields()protected voidvalidate()Insert the method's description here.-
Methods inherited from class com.cosylab.vdct.graphics.objects.LinkManagerObject
addInvalidLink, checkIfMacroCandidate, destroyFields, fixEPICSOutLinks, fixLink, fixLink, fixLink_, fixLinks_, fixMacroLink, getLinkMenus, getTargetLink, isFirstField, isLastField, isSoftwareLink, manageLink, manageLink_, moveConnectors, moveFieldDown, moveFieldUp, postDraw, removeInvalidLink, setTargetLink
-
Methods inherited from class com.cosylab.vdct.graphics.objects.ContainerObject
addSubObject, addSubObject, addSubObject, clear, containsObject, getRootContainer, getSubObject, getSubObjects, getSubObjectsV, removeObject
-
Methods inherited from class com.cosylab.vdct.graphics.objects.VisibleObject
forceValidation, getColor, getDsId, getFont, getLabel, getLeftOffset, getMarkedX, getMarkedY, getMoveInsideView, getParent, getRheight, getRightOffset, getRlabelX, getRlabelY, getRscale, getRwidth, getRx, getRy, getScale, getTopOffset, getVisibleColor, getWidth, getX, getY, intersects, isDestroyed, isVisible, isZoomRepaint, markPosition, paint, postPaint, setColor, setDestroyed, setFont, setHeight, setLabel, setParent, setRheight, setRlabelX, setRlabelY, setRwidth, setRx, setRy, setScale, setWidth, setX, setY, setZoomRepaint, 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.inspector.Inspectable
getDsId
-
-
-
-
Field Detail
-
recordData
protected VDBRecordData recordData
-
rtypeLabelX
protected int rtypeLabelX
-
rtypeLabelY
protected int rtypeLabelY
-
label2
protected String label2
-
typeFont
protected Font typeFont
-
rfieldLabelX
protected int rfieldLabelX
-
rfieldLabelY
protected int rfieldLabelY
-
rfieldRowHeight
protected double rfieldRowHeight
-
fieldFont
protected Font fieldFont
-
changedFields
protected Vector changedFields
-
outlinks
protected Vector outlinks
-
disconnected
protected boolean disconnected
-
debugValueColor
protected Color debugValueColor
-
timestampX
protected int timestampX
-
timestampY
protected int timestampY
-
timestamp
protected String timestamp
-
timestampFont
protected Font timestampFont
-
valueX
protected int valueX
-
valueY
protected int valueY
-
value
protected String value
-
valueFont
protected Font valueFont
-
GUI_GROUP_ORDER
public static final int GUI_GROUP_ORDER
- See Also:
- Constant Field Values
-
SORT_ORDER
public static final int SORT_ORDER
- See Also:
- Constant Field Values
-
DBD_ORDER
public static final int DBD_ORDER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Record
public Record(ContainerObject parent, VDBRecordData recordData, int x, int y)
Group constructor comment.- Parameters:
parent- com.cosylab.vdct.graphics.objects.ContainerObjectrecordData- recordDatax- inty- int
-
-
Method Detail
-
_fixEPICSInLinks
public void _fixEPICSInLinks(String oldRecordName, String newRecordName)
Insert the method's description here. Creation date: (5.2.2001 13:36:25)- Parameters:
oldRecordName- java.lang.StringnewRecordName- java.lang.String
-
accept
public void accept(Visitor visitor)
Insert the method's description here. Creation date: (21.12.2000 20:46:35)
-
addLink
public void addLink(Linkable link)
Insert the method's description here. Creation date: (29.1.2001 22:40:48)
-
checkMove
public boolean checkMove(int dx, int dy)Insert the method's description here. Creation date: (25.12.2000 14:14:35)
-
copyToGroup
public Flexible copyToGroup(Object dsId, String group)
Insert the method's description here. Creation date: (4.2.2001 22:02:29)- Specified by:
copyToGroupin interfaceFlexible- Parameters:
dsId- dsIdgroup- java.lang.String- Returns:
- something
-
fixEPICSOutLinksOnCopy
public void fixEPICSOutLinksOnCopy(String prevGroup, String group)
Insert the method's description here. Creation date: (5.2.2001 9:42:29)- Parameters:
prevGroup- java.lang.Stringgroup- java.lang.String
-
destroy
public void destroy()
Insert the method's description here. Creation date: (30.1.2001 11:59:21)- Overrides:
destroyin classVisibleObject
-
disconnect
public void disconnect(Linkable disconnector)
Insert the method's description here. Creation date: (30.1.2001 11:47:53)- Specified by:
disconnectin interfaceLinkable- Parameters:
disconnector- disconnector
-
draw
protected void draw(Graphics g, boolean hilited)
Insert the method's description here. Creation date: (21.12.2000 20:46:35)- Specified by:
drawin classVisibleObject- Parameters:
g- java.awt.Graphicshilited- boolean
-
drawDebugTimeout
protected static void drawDebugTimeout(Graphics g, int hour, int minute, int x0, int y0, int w, int h)
Draws a timeout clock.- Parameters:
g- ghour- hourminute- minutex0- x0y0- y0w- wh- h
-
fieldChanged
public void fieldChanged(VDBFieldData field)
Insert the method's description here. Creation date: (27.1.2001 16:12:03)- Specified by:
fieldChangedin classLinkManagerObject- Parameters:
field- com.cosylab.vdct.vdb.VDBFieldData
-
isVisible
public boolean isVisible(VDBFieldData field)
- Parameters:
field- field- Returns:
- something
-
isOldVisible
public boolean isOldVisible(VDBFieldData field)
- Parameters:
field- field- Returns:
- something
-
fixEPICSOutLinks
public void fixEPICSOutLinks(String prevGroup, String group)
Insert the method's description here. Creation date: (5.2.2001 9:42:29)- Parameters:
prevGroup- 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)- Overrides:
fixLinksin classLinkManagerObject
-
getCommentProperty
public InspectableProperty getCommentProperty()
Insert the method's description here. Creation date: (26.1.2001 15:00:15)- Specified by:
getCommentPropertyin interfaceInspectable- Returns:
- com.cosylab.vdct.inspector.InspectableProperty
-
getDescription
public String getDescription()
Insert the method's description here. Creation date: (9.4.2001 13:12:33)- Specified by:
getDescriptionin interfaceDescriptable- Returns:
- java.lang.String
-
getFlexibleName
public String getFlexibleName()
Insert the method's description here. Creation date: (3.5.2001 10:16:55)- Specified by:
getFlexibleNamein interfaceFlexible- Returns:
- java.lang.String
-
getHashID
public String getHashID()
Insert the method's description here. Creation date: (3.5.2001 16:41:13)- Specified by:
getHashIDin classVisibleObject- Returns:
- java.lang.String
-
getHeight
public int getHeight()
Insert the method's description here. Creation date: (25.4.2001 17:58:03)- Overrides:
getHeightin classVisibleObject- Returns:
- int
-
getIcon
public Icon getIcon()
Insert the method's description here. Creation date: (10.1.2001 15:15:51)- Specified by:
getIconin interfaceInspectable- Returns:
- javax.swing.Icon
-
getID
public String getID()
Insert the method's description here. Creation date: (23.4.2001 20:37:11)
-
getInX
public int getInX()
Insert the method's description here. Creation date: (30.1.2001 11:47:54)
-
getInY
public int getInY()
Insert the method's description here. Creation date: (30.1.2001 11:47:54)
-
getItems
public Vector getItems()
Insert the method's description here. Creation date: (2.2.2001 20:31:29)
-
getLayerID
public String getLayerID()
Insert the method's description here. Creation date: (30.1.2001 11:47:53)- Specified by:
getLayerIDin interfaceLinkable- Returns:
- java.lang.String
-
getLinkCount
public int getLinkCount()
Insert the method's description here. Creation date: (4.5.2001 9:54:07)- Specified by:
getLinkCountin interfaceMultiInLink- Returns:
- java.util.Vector
-
getName
public String getName()
Insert the method's description here. Creation date: (2.2.2001 21:40:05)- Specified by:
getNamein interfaceInspectable- Specified by:
getNamein interfaceMorphable- Returns:
- java.lang.String
-
getOutput
public OutLink getOutput()
Insert the method's description here. Creation date: (30.1.2001 11:47:53)
-
getAlphaSeparator
public static GUISeparator getAlphaSeparator()
Insert the method's description here. Creation date: (3.2.2001 13:07:04)- Returns:
- com.cosylab.vdct.vdb.GUISeparator
-
getDBDSeparator
public static GUISeparator getDBDSeparator()
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: (11.1.2001 21:43:31)- Specified by:
getPropertiesin interfaceInspectable- Parameters:
mode- modespreadsheet- spreadsheet- Returns:
- com.cosylab.vdct.inspector.InspectableProperty[]
-
getRecordData
public VDBRecordData getRecordData()
Insert the method's description here. Creation date: (8.1.2001 21:18:50)- Returns:
- com.cosylab.vdct.vdb.VDBRecordData
-
getStartPoints
public Vector getStartPoints()
Insert the method's description here. Creation date: (5.2.2001 12:10:18)- Specified by:
getStartPointsin interfaceMultiInLink- Returns:
- java.util.Vector
-
hiliteComponentsCheck
public VisibleObject hiliteComponentsCheck(int x, int y)
Returned value inicates change Creation date: (21.12.2000 22:21:12)- Parameters:
x- inty- int- Returns:
- com.cosylab.visible.objects.VisibleObject
-
initializeLinkField
public EPICSLink initializeLinkField(VDBFieldData field)
Insert the method's description here. Creation date: (30.1.2001 9:36:15)- Parameters:
field- com.cosylab.vdct.vdb.VDBFieldData- Returns:
- something
-
intersects
public VisibleObject intersects(int px, int py)
Default impmlementation for square (must be rescaled) Creation date: (19.12.2000 20:20:20)- Overrides:
intersectsin classVisibleObject- Parameters:
px- intpy- int- Returns:
- com.cosylab.visible.objects.VisibleObject
-
selectComponentsCheck
public boolean selectComponentsCheck(int x1, int y1, int x2, int y2)Returned value inicates change Creation date: (21.12.2000 22:21:12)- Specified by:
selectComponentsCheckin interfaceSelectableComponents- Parameters:
x1- inty1- intx2- inty2- int- Returns:
- boolean anyNew
-
isConnectable
public boolean isConnectable()
Insert the method's description here. Creation date: (30.1.2001 11:47:53)- Specified by:
isConnectablein interfaceLinkable- Returns:
- boolean
-
isDisconnected
public boolean isDisconnected()
Insert the method's description here. Creation date: (30.1.2001 11:47:53)- Specified by:
isDisconnectedin interfaceLinkable- Returns:
- boolean
-
isRight
public boolean isRight()
Insert the method's description here. Creation date: (30.1.2001 16:58:58)
-
manageLinks
public void manageLinks()
Insert the method's description here. Creation date: (30.1.2001 11:35:39)
-
morph
public boolean morph(String newType)
Insert the method's description here. Creation date: (4.2.2001 21:58:46)
-
setRecordData
public void setRecordData(VDBRecordData recordData)
- Parameters:
recordData- recordData
-
getTargets
public Object[] getTargets()
- Specified by:
getTargetsin interfaceMorphable- Returns:
- something
-
move
public boolean move(int dx, int dy)Insert the method's description here. Creation date: (25.12.2000 14:14:35)
-
moveAsMuchAsPossibleTopUp
public boolean moveAsMuchAsPossibleTopUp(int dx, int dy)NOTE: only dy < 0 is checked- Parameters:
dx- dxdy- dy- Returns:
- something
-
moveToGroup
public boolean moveToGroup(Object dsId, String group)
Insert the method's description here. Creation date: (4.2.2001 22:02:29)- Specified by:
moveToGroupin interfaceFlexible- Parameters:
dsId- dsIdgroup- java.lang.String- Returns:
- something
-
removeLink
public void removeLink(Linkable link)
Insert the method's description here. Creation date: (29.1.2001 22:40:48)- Specified by:
removeLinkin interfaceHub- Parameters:
link- com.cosylab.vdct.graphics.objects.Linkable
-
rename
public boolean rename(Object dsId, String newName)
Insert the method's description here. Creation date: (2.5.2001 23:23:32)
-
revalidateFieldsPosition
public void revalidateFieldsPosition()
Insert the method's description here. Creation date: (26.1.2001 17:18:51)- Specified by:
revalidateFieldsPositionin classLinkManagerObject
-
revalidatePosition
public void revalidatePosition()
Insert the method's description here. Creation date: (21.12.2000 21:22:45)- Specified by:
revalidatePositionin classVisibleObject
-
revalidateOutlinkConnectors
public void revalidateOutlinkConnectors()
-
rotate
public void rotate()
Insert the method's description here. Creation date: (30.1.2001 16:58:58)
-
selectAllComponents
public boolean selectAllComponents()
Insert the method's description here. Creation date: (27.12.2000 12:45:23)- Returns:
- boolean
-
setDescription
public void setDescription(String description)
Insert the method's description here. Creation date: (24.4.2001 17:40:55)- Specified by:
setDescriptionin interfaceDescriptable- Parameters:
description- java.lang.String
-
setLayerID
public void setLayerID(String id)
Insert the method's description here. Creation date: (30.1.2001 11:47:53)- Specified by:
setLayerIDin interfaceLinkable- Parameters:
id- java.lang.String
-
setOutput
public void setOutput(OutLink output, OutLink prevOutput)
Insert the method's description here. Creation date: (30.1.2001 11:47:54)
-
setRight
public void setRight(boolean state)
Insert the method's description here. Creation date: (30.1.2001 16:58:58)
-
toString
public String toString()
Insert the method's description here. Creation date: (10.1.2001 14:49:50)
-
resetValidationsCounter
public void resetValidationsCounter()
-
validate
protected void validate()
Insert the method's description here. Creation date: (21.12.2000 20:46:35)- Specified by:
validatein classVisibleObject
-
getField
public VDBFieldData getField(String name)
- Specified by:
getFieldin classLinkManagerObject- Parameters:
name- name- Returns:
- something
-
getModeNames
public ArrayList getModeNames()
Description copied from interface:InspectableObtains 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:
getModeNamesin interfaceInspectable- Returns:
- java.util.ArrayList array of mode names - obtained using toString().
- See Also:
Inspectable.getModeNames()
-
generateMacros
public void generateMacros(HashMap macros)
- Parameters:
macros- macros
-
getOutlinks
public Vector getOutlinks()
- Specified by:
getOutlinksin interfaceMultiInLink- Returns:
- something
-
updateFields
public void updateFields()
- Overrides:
updateFieldsin classContainerObject
-
snapToGrid
public void snapToGrid()
Snap to grid. Nearest point is taken.- Overrides:
snapToGridin classVisibleObject
-
-