|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cosylab.vdct.graphics.objects.VisibleObject
com.cosylab.vdct.graphics.objects.ContainerObject
com.cosylab.vdct.graphics.objects.LinkManagerObject
com.cosylab.vdct.graphics.objects.Record
public class Record
Insert the type's description here. Creation date: (21.12.2000 20:46:35)
Field Summary | |
---|---|
protected java.util.Vector |
changedFields
|
static int |
DBD_ORDER
|
protected java.awt.Color |
debugValueColor
|
protected boolean |
disconnected
|
protected java.awt.Font |
fieldFont
|
static int |
GUI_GROUP_ORDER
|
protected java.lang.String |
label2
|
protected java.util.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 java.lang.String |
timestamp
|
protected java.awt.Font |
timestampFont
|
protected int |
timestampX
|
protected int |
timestampY
|
protected java.awt.Font |
typeFont
|
protected java.lang.String |
value
|
protected java.awt.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 | |
---|---|
Record(ContainerObject parent,
VDBRecordData recordData,
int x,
int y)
Group constructor comment. |
Method Summary | |
---|---|
void |
_fixEPICSInLinks(java.lang.String oldRecordName,
java.lang.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(java.lang.Object dsId,
java.lang.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(java.awt.Graphics g,
boolean hilited)
Insert the method's description here. |
protected static void |
drawDebugTimeout(java.awt.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(java.lang.String prevGroup,
java.lang.String group)
Insert the method's description here. |
void |
fixEPICSOutLinksOnCopy(java.lang.String prevGroup,
java.lang.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(java.util.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. |
java.lang.String |
getDescription()
Insert the method's description here. |
VDBFieldData |
getField(java.lang.String name)
|
java.lang.String |
getFlexibleName()
Insert the method's description here. |
java.lang.String |
getHashID()
Insert the method's description here. |
int |
getHeight()
Insert the method's description here. |
javax.swing.Icon |
getIcon()
Insert the method's description here. |
java.lang.String |
getID()
Insert the method's description here. |
int |
getInX()
Insert the method's description here. |
int |
getInY()
Insert the method's description here. |
java.util.Vector |
getItems()
Insert the method's description here. |
java.lang.String |
getLayerID()
Insert the method's description here. |
int |
getLeftX()
|
int |
getLinkCount()
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. |
java.util.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()
|
java.util.Vector |
getStartPoints()
Insert the method's description here. |
java.lang.Object[] |
getTargets()
|
java.lang.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(java.lang.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 checked |
boolean |
moveToGroup(java.lang.Object dsId,
java.lang.String group)
Insert the method's description here. |
void |
removeLink(Linkable link)
Insert the method's description here. |
boolean |
rename(java.lang.Object dsId,
java.lang.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(java.lang.String description)
Insert the method's description here. |
void |
setLayerID(java.lang.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. |
java.lang.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.graphics.popup.Popupable |
---|
getLabel |
Methods inherited from interface com.cosylab.vdct.inspector.Inspectable |
---|
getDsId |
Field Detail |
---|
protected VDBRecordData recordData
protected int rtypeLabelX
protected int rtypeLabelY
protected java.lang.String label2
protected java.awt.Font typeFont
protected int rfieldLabelX
protected int rfieldLabelY
protected double rfieldRowHeight
protected java.awt.Font fieldFont
protected java.util.Vector changedFields
protected java.util.Vector outlinks
protected boolean disconnected
protected java.awt.Color debugValueColor
protected int timestampX
protected int timestampY
protected java.lang.String timestamp
protected java.awt.Font timestampFont
protected int valueX
protected int valueY
protected java.lang.String value
protected java.awt.Font valueFont
public static final int GUI_GROUP_ORDER
public static final int SORT_ORDER
public static final int DBD_ORDER
Constructor Detail |
---|
public Record(ContainerObject parent, VDBRecordData recordData, int x, int y)
parent
- com.cosylab.vdct.graphics.objects.ContainerObjectMethod Detail |
---|
public void _fixEPICSInLinks(java.lang.String oldRecordName, java.lang.String newRecordName)
oldRecordName
- java.lang.StringnewRecordName
- java.lang.Stringpublic void accept(Visitor visitor)
accept
in interface Visitable
visitor
- com.cosylab.vdct.graphics.objects.Visitorpublic void addLink(Linkable link)
addLink
in interface Hub
link
- com.cosylab.vdct.graphics.objects.Linkablepublic boolean checkMove(int dx, int dy)
checkMove
in interface Movable
dx
- intdy
- int
public Flexible copyToGroup(java.lang.Object dsId, java.lang.String group)
copyToGroup
in interface Flexible
group
- java.lang.Stringpublic void fixEPICSOutLinksOnCopy(java.lang.String prevGroup, java.lang.String group)
e
- java.util.Enumeration list of VDBFieldData fieldsprevGroup
- java.lang.Stringgroup
- java.lang.Stringpublic void destroy()
destroy
in class VisibleObject
public void disconnect(Linkable disconnector)
disconnect
in interface Linkable
protected void draw(java.awt.Graphics g, boolean hilited)
draw
in class VisibleObject
g
- java.awt.Graphicshilited
- booleanprotected static void drawDebugTimeout(java.awt.Graphics g, int hour, int minute, int x0, int y0, int w, int h)
g
- hour
- minute
- x0
- y0
- w
- h
- public void fieldChanged(VDBFieldData field)
fieldChanged
in class LinkManagerObject
field
- com.cosylab.vdct.vdb.VDBFieldDatapublic boolean isVisible(VDBFieldData field)
public boolean isOldVisible(VDBFieldData field)
public void fixEPICSOutLinks(java.lang.String prevGroup, java.lang.String group)
prevGroup
- java.lang.Stringgroup
- java.lang.Stringpublic void fixLinks()
fixLinks
in class LinkManagerObject
public InspectableProperty getCommentProperty()
getCommentProperty
in interface Inspectable
public java.lang.String getDescription()
getDescription
in interface Descriptable
public java.lang.String getFlexibleName()
getFlexibleName
in interface Flexible
public java.lang.String getHashID()
getHashID
in class VisibleObject
public int getHeight()
getHeight
in class VisibleObject
public javax.swing.Icon getIcon()
getIcon
in interface Inspectable
public java.lang.String getID()
getID
in interface Linkable
public int getInX()
getInX
in interface InLink
public int getInY()
getInY
in interface InLink
public java.util.Vector getItems()
getItems
in interface Popupable
public java.lang.String getLayerID()
getLayerID
in interface Linkable
public int getLinkCount()
getLinkCount
in interface MultiInLink
public java.lang.String getName()
getName
in interface Morphable
getName
in interface Inspectable
public OutLink getOutput()
getOutput
in interface InLink
public static GUISeparator getAlphaSeparator()
public static GUISeparator getDBDSeparator()
public InspectableProperty[] getProperties(int mode, boolean spreadsheet)
getProperties
in interface Inspectable
public VDBRecordData getRecordData()
public java.util.Vector getStartPoints()
getStartPoints
in interface MultiInLink
public VisibleObject hiliteComponentsCheck(int x, int y)
x
- inty
- int
public EPICSLink initializeLinkField(VDBFieldData field)
field
- com.cosylab.vdct.vdb.VDBFieldDatapublic VisibleObject intersects(int px, int py)
intersects
in class VisibleObject
px
- intpy
- int
public boolean selectComponentsCheck(int x1, int y1, int x2, int y2)
selectComponentsCheck
in interface SelectableComponents
x1
- inty1
- intx2
- inty2
- int
public boolean isConnectable()
isConnectable
in interface Linkable
public boolean isDisconnected()
isDisconnected
in interface Linkable
public boolean isRight()
isRight
in interface InLink
isRight
in interface Rotatable
public void manageLinks()
public boolean morph(java.lang.String newType)
morph
in interface Morphable
newType
- java.lang.Stringpublic void setRecordData(VDBRecordData recordData)
public java.lang.Object[] getTargets()
getTargets
in interface Morphable
public boolean move(int dx, int dy)
move
in interface Movable
dx
- intdy
- int
public boolean moveAsMuchAsPossibleTopUp(int dx, int dy)
public boolean moveToGroup(java.lang.Object dsId, java.lang.String group)
moveToGroup
in interface Flexible
group
- java.lang.Stringpublic void removeLink(Linkable link)
removeLink
in interface Hub
link
- com.cosylab.vdct.graphics.objects.Linkablepublic boolean rename(java.lang.Object dsId, java.lang.String newName)
rename
in interface Flexible
newName
- java.lang.Stringpublic void revalidateFieldsPosition()
revalidateFieldsPosition
in class LinkManagerObject
public void revalidatePosition()
revalidatePosition
in class VisibleObject
public void revalidateOutlinkConnectors()
public void rotate()
rotate
in interface Rotatable
public boolean selectAllComponents()
public void setDescription(java.lang.String description)
setDescription
in interface Descriptable
description
- java.lang.Stringpublic void setLayerID(java.lang.String id)
setLayerID
in interface Linkable
id
- java.lang.Stringpublic void setOutput(OutLink output, OutLink prevOutput)
setOutput
in interface InLink
output
- com.cosylab.vdct.graphics.objects.OutLinkprevOutput
- com.cosylab.vdct.graphics.objects.OutLinkpublic void setRight(boolean state)
setRight
in interface Rotatable
state
- booleanpublic java.lang.String toString()
toString
in interface Flexible
toString
in interface Inspectable
toString
in class java.lang.Object
public void resetValidationsCounter()
protected void validate()
validate
in class VisibleObject
public VDBFieldData getField(java.lang.String name)
getField
in class LinkManagerObject
public java.util.ArrayList getModeNames()
Inspectable
getModeNames
in interface Inspectable
Inspectable.getModeNames()
public void generateMacros(java.util.HashMap macros)
linkableMacros
- macros
- deep
- public int getLeftX()
getLeftX
in interface InLink
public int getRightX()
getRightX
in interface InLink
public java.lang.String getType()
getType
in interface Morphable
public java.util.Vector getOutlinks()
getOutlinks
in interface MultiInLink
public void updateFields()
updateFields
in class ContainerObject
public void snapToGrid()
snapToGrid
in class VisibleObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |