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 Vector
changedFields
static int
DBD_ORDER
protected Color
debugValueColor
protected boolean
disconnected
protected Font
fieldFont
static int
GUI_GROUP_ORDER
protected String
label2
protected Vector
outlinks
protected VDBRecordData
recordData
protected int
rfieldLabelX
protected int
rfieldLabelY
protected double
rfieldRowHeight
protected int
rtypeLabelX
protected int
rtypeLabelY
static int
SORT_ORDER
protected String
timestamp
protected Font
timestampFont
protected int
timestampX
protected int
timestampY
protected Font
typeFont
protected String
value
protected Font
valueFont
protected int
valueX
protected int
valueY
-
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.void
accept(Visitor visitor)
Insert the method's description here.void
addLink(Linkable link)
Insert the method's description here.boolean
checkMove(int dx, int dy)
Insert the method's description here.Flexible
copyToGroup(Object dsId, String group)
Insert the method's description here.void
destroy()
Insert the method's description here.void
disconnect(Linkable disconnector)
Insert the method's description here.protected void
draw(Graphics g, boolean hilited)
Insert the method's description here.protected static void
drawDebugTimeout(Graphics g, int hour, int minute, int x0, int y0, int w, int h)
Draws a timeout clock.void
fieldChanged(VDBFieldData field)
Insert the method's description here.void
fixEPICSOutLinks(String prevGroup, String group)
Insert the method's description here.void
fixEPICSOutLinksOnCopy(String prevGroup, String group)
Insert the method's description here.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
generateMacros(HashMap macros)
static GUISeparator
getAlphaSeparator()
Insert the method's description here.InspectableProperty
getCommentProperty()
Insert the method's description here.static GUISeparator
getDBDSeparator()
Insert the method's description here.String
getDescription()
Insert the method's description here.VDBFieldData
getField(String name)
String
getFlexibleName()
Insert the method's description here.String
getHashID()
Insert the method's description here.int
getHeight()
Insert the method's description here.Icon
getIcon()
Insert the method's description here.String
getID()
Insert the method's description here.int
getInX()
Insert the method's description here.int
getInY()
Insert the method's description here.Vector
getItems()
Insert the method's description here.String
getLayerID()
Insert the method's description here.int
getLeftX()
int
getLinkCount()
Insert the method's description here.ArrayList
getModeNames()
Obtains list of all mode names for this particular property.String
getName()
Insert the method's description here.Vector
getOutlinks()
OutLink
getOutput()
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)VDBRecordData
getRecordData()
Insert the method's description here.int
getRightX()
Vector
getStartPoints()
Insert the method's description here.Object[]
getTargets()
String
getType()
VisibleObject
hiliteComponentsCheck(int x, int y)
Returned value inicates change Creation date: (21.12.2000 22:21:12)EPICSLink
initializeLinkField(VDBFieldData field)
Insert the method's description here.VisibleObject
intersects(int px, int py)
Default impmlementation for square (must be rescaled) Creation date: (19.12.2000 20:20:20)boolean
isConnectable()
Insert the method's description here.boolean
isDisconnected()
Insert the method's description here.boolean
isOldVisible(VDBFieldData field)
boolean
isRight()
Insert the method's description here.boolean
isVisible(VDBFieldData field)
void
manageLinks()
Insert the method's description here.boolean
morph(String newType)
Insert the method's description here.boolean
move(int dx, int dy)
Insert the method's description here.boolean
moveAsMuchAsPossibleTopUp(int dx, int dy)
NOTE: only dy < 0 is checkedboolean
moveToGroup(Object dsId, String group)
Insert the method's description here.void
removeLink(Linkable link)
Insert the method's description here.boolean
rename(Object dsId, String newName)
Insert the method's description here.void
resetValidationsCounter()
void
revalidateFieldsPosition()
Insert the method's description here.void
revalidateOutlinkConnectors()
void
revalidatePosition()
Insert the method's description here.void
rotate()
Insert the method's description here.boolean
selectAllComponents()
Insert the method's description here.boolean
selectComponentsCheck(int x1, int y1, int x2, int y2)
Returned value inicates change Creation date: (21.12.2000 22:21:12)void
setDescription(String description)
Insert the method's description here.void
setLayerID(String id)
Insert the method's description here.void
setOutput(OutLink output, OutLink prevOutput)
Insert the method's description here.void
setRecordData(VDBRecordData recordData)
void
setRight(boolean state)
Insert the method's description here.void
snapToGrid()
Snap to grid.String
toString()
Insert the method's description here.void
updateFields()
protected void
validate()
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:
copyToGroup
in 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:
destroy
in classVisibleObject
-
disconnect
public void disconnect(Linkable disconnector)
Insert the method's description here. Creation date: (30.1.2001 11:47:53)- Specified by:
disconnect
in 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:
draw
in 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:
fieldChanged
in 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:
fixLinks
in classLinkManagerObject
-
getCommentProperty
public InspectableProperty getCommentProperty()
Insert the method's description here. Creation date: (26.1.2001 15:00:15)- Specified by:
getCommentProperty
in 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:
getDescription
in 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:
getFlexibleName
in 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:
getHashID
in classVisibleObject
- Returns:
- java.lang.String
-
getHeight
public int getHeight()
Insert the method's description here. Creation date: (25.4.2001 17:58:03)- Overrides:
getHeight
in classVisibleObject
- Returns:
- int
-
getIcon
public Icon getIcon()
Insert the method's description here. Creation date: (10.1.2001 15:15:51)- Specified by:
getIcon
in 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:
getLayerID
in 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:
getLinkCount
in 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:
getName
in interfaceInspectable
- Specified by:
getName
in 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:
getProperties
in 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:
getStartPoints
in 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:
intersects
in 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:
selectComponentsCheck
in 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:
isConnectable
in interfaceLinkable
- Returns:
- boolean
-
isDisconnected
public boolean isDisconnected()
Insert the method's description here. Creation date: (30.1.2001 11:47:53)- Specified by:
isDisconnected
in 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:
getTargets
in 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:
moveToGroup
in 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:
removeLink
in 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:
revalidateFieldsPosition
in classLinkManagerObject
-
revalidatePosition
public void revalidatePosition()
Insert the method's description here. Creation date: (21.12.2000 21:22:45)- Specified by:
revalidatePosition
in 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:
setDescription
in 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:
setLayerID
in 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:
validate
in classVisibleObject
-
getField
public VDBFieldData getField(String name)
- Specified by:
getField
in classLinkManagerObject
- Parameters:
name
- name- Returns:
- something
-
getModeNames
public 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 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:
getOutlinks
in interfaceMultiInLink
- Returns:
- something
-
updateFields
public void updateFields()
- Overrides:
updateFields
in classContainerObject
-
snapToGrid
public void snapToGrid()
Snap to grid. Nearest point is taken.- Overrides:
snapToGrid
in classVisibleObject
-
-