|
|||||||||
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.Template
public class Template
Graphical representation of templates.
Field Summary | |
---|---|
protected java.awt.Font |
fieldFont
|
protected int |
fields
|
protected java.awt.Font |
idFont
|
protected java.lang.String |
idlabel
|
protected int |
initY
|
protected java.util.Vector |
invalidLinks
|
protected int |
leftFields
|
protected long |
macrosID
|
protected long |
portsID
|
protected int |
rfieldLabelX
|
protected int |
rfieldLabelY
|
protected double |
rfieldRowHeight
|
protected int |
ridLabelX
|
protected int |
ridLabelY
|
protected int |
rightFields
|
protected int |
rlinkY
|
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 |
Constructor Summary | |
---|---|
Template(ContainerObject parent,
VDBTemplateInstance templateData)
|
|
Template(ContainerObject parent,
VDBTemplateInstance templateData,
boolean initializeFields)
Insert the method's description here. |
Method Summary | |
---|---|
void |
accept(Visitor visitor)
|
void |
addInvalidLink(EPICSLink field)
|
void |
addLink(Linkable link)
|
EPICSLink |
addMacroField(VDBMacro macro)
|
EPICSLink |
addPortField(VDBPort port)
|
void |
addProperty()
|
InspectableProperty |
addProperty(java.lang.String key,
java.lang.String value)
|
boolean |
checkMove(int dx,
int dy)
Insert the method's description here. |
Flexible |
copyToGroup(java.lang.Object dsId,
java.lang.String group)
Returns the copied instance or null if the object cannot be copied. |
void |
destroy()
Insert the method's description here. |
protected void |
destroyFields()
Insert the method's description here. |
protected void |
draw(java.awt.Graphics g,
boolean hilited)
Insert the method's description here. |
void |
fieldChanged(VDBFieldData field)
Insert the method's description here. |
void |
fieldSideChange(EPICSLink link,
boolean isRight)
|
void |
fieldVisibilityChange(VDBFieldData fieldData,
boolean newVisible)
|
void |
fixMacrosOnCopy(java.lang.String prevGroup,
java.lang.String group)
Insert the method's description here. |
void |
generateMacros(java.util.HashMap macros)
|
InspectableProperty |
getCommentProperty()
|
java.lang.String |
getDescription()
Returns the description. |
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. |
javax.swing.Icon |
getIcon()
Insert the method's description here. |
java.util.Vector |
getItems()
Insert the method's description here. |
static GUISeparator |
getMacrosSeparator()
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. |
static GUISeparator |
getPortsSeparator()
Insert the method's description here. |
InspectableProperty[] |
getProperties(int mode,
boolean spreadsheet)
|
static GUISeparator |
getPropertiesSeparator()
Insert the method's description here. |
java.lang.Object[] |
getTargets()
|
VDBTemplateInstance |
getTemplateData()
Returns the templateData. |
static GUISeparator |
getTemplateInstanceSeparator()
Insert the method's description here. |
static GUISeparator |
getTemplateSeparator()
Insert the method's description here. |
java.lang.String |
getType()
|
VisibleObject |
hiliteComponentsCheck(int x,
int y)
Returned value inicates change Creation date: (21.12.2000 22:21:12) |
void |
initializeLinkFields()
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 |
isFirstField(Field field)
Insert the method's description here. |
boolean |
isLastField(Field field)
Insert the method's description here. |
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. |
void |
moveFieldDown(Field field)
Insert the method's description here. |
void |
moveFieldUp(Field field)
Insert the method's description here. |
boolean |
moveToGroup(java.lang.Object dsId,
java.lang.String group)
Insert the method's description here. |
static java.util.Map |
preparePorts(Group group,
java.util.Map substitutions,
NameManipulator namer)
Insert the method's description here |
static java.util.Map |
prepareSubstitutions(VDBTemplateInstance templateData,
java.util.Map substitutions,
java.util.Map ports)
Insert the method's description here. |
void |
propertyChanged(InspectableProperty property)
|
void |
removeInvalidLink(EPICSLink field)
|
void |
removeLink(Linkable link)
|
void |
removeProperty(InspectableProperty property)
|
boolean |
rename(java.lang.Object dsId,
java.lang.String newName)
Insert the method's description here. |
void |
renameProperty(InspectableProperty property)
|
void |
revalidateFieldsPosition()
Insert the method's description here. |
void |
revalidatePosition()
Insert the method's description here. |
void |
setDestroyed(boolean newDestroyed)
Insert the method's description here. |
void |
setTemplateInstance(VDBTemplateInstance templateInstance)
|
java.lang.String |
toString()
Insert the method's description here. |
protected void |
undestroyFields()
Insert the method's description here. |
void |
updateTemplateFields()
Insert the method's description here. |
protected void |
validate()
Insert the method's description here. |
void |
writeObjects(java.io.DataOutputStream file,
NamingContext context,
boolean export)
Insert the method's description here. |
void |
writeVDCTObjects(java.io.DataOutputStream file,
NamingContext renamer,
boolean export)
Insert the method's description here. |
Methods inherited from class com.cosylab.vdct.graphics.objects.LinkManagerObject |
---|
checkIfMacroCandidate, fixEPICSOutLinks, fixLink_, fixLink, fixLink, fixLinks_, fixLinks, fixMacroLink, getLinkMenus, getTargetLink, isSoftwareLink, manageLink_, manageLink, moveConnectors, postDraw, setTargetLink |
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 |
---|
forceValidation, getColor, getDsId, getFont, getHeight, 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, 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.inspector.Inspectable |
---|
getDsId |
Methods inherited from interface com.cosylab.vdct.graphics.popup.Popupable |
---|
getLabel |
Field Detail |
---|
protected int rfieldLabelX
protected int rfieldLabelY
protected double rfieldRowHeight
protected java.awt.Font fieldFont
protected int ridLabelX
protected int ridLabelY
protected java.lang.String idlabel
protected java.awt.Font idFont
protected int initY
protected int rlinkY
protected long portsID
protected long macrosID
protected java.util.Vector invalidLinks
protected int fields
protected int leftFields
protected int rightFields
Constructor Detail |
---|
public Template(ContainerObject parent, VDBTemplateInstance templateData)
parent
- templateData
- public Template(ContainerObject parent, VDBTemplateInstance templateData, boolean initializeFields)
parent
- com.cosylab.vdct.graphics.objects.ContainerObjecttemplateData
- The templateData to setMethod Detail |
---|
protected void draw(java.awt.Graphics g, boolean hilited)
VisibleObject
draw
in class VisibleObject
g
- java.awt.Graphicshilited
- booleanVisibleObject.draw(Graphics, boolean)
public java.lang.String getHashID()
VisibleObject
getHashID
in class VisibleObject
VisibleObject.getHashID()
public void revalidatePosition()
VisibleObject
revalidatePosition
in class VisibleObject
VisibleObject.revalidatePosition()
protected void validate()
VisibleObject
validate
in class VisibleObject
public boolean checkMove(int dx, int dy)
Movable
checkMove
in interface Movable
dx
- intdy
- int
Movable.checkMove(int, int)
public boolean move(int dx, int dy)
Movable
move
in interface Movable
dx
- intdy
- int
Movable.move(int, int)
public InspectableProperty getCommentProperty()
getCommentProperty
in interface Inspectable
Inspectable.getCommentProperty()
public javax.swing.Icon getIcon()
Inspectable
getIcon
in interface Inspectable
Inspectable.getIcon()
public java.lang.String getName()
Inspectable
getName
in interface Morphable
getName
in interface Inspectable
Inspectable.getName()
public java.lang.String toString()
toString
in interface Flexible
toString
in interface Inspectable
toString
in class java.lang.Object
public static GUISeparator getTemplateSeparator()
public static GUISeparator getTemplateInstanceSeparator()
public static GUISeparator getPortsSeparator()
public static GUISeparator getMacrosSeparator()
public static GUISeparator getPropertiesSeparator()
public InspectableProperty[] getProperties(int mode, boolean spreadsheet)
getProperties
in interface Inspectable
Inspectable.getProperties(int, boolean spreadsheet)
public java.util.Vector getItems()
Popupable
getItems
in interface Popupable
Popupable.getItems()
public java.lang.String getFlexibleName()
Flexible
getFlexibleName
in interface Flexible
Flexible.getFlexibleName()
public void accept(Visitor visitor)
accept
in interface Visitable
visitor
- com.cosylab.vdct.graphics.objects.VisitorVisitable.accept(Visitor)
public VDBTemplateInstance getTemplateData()
public java.lang.String getDescription()
public VisibleObject hiliteComponentsCheck(int x, int y)
x
- inty
- int
public VisibleObject intersects(int px, int py)
intersects
in class VisibleObject
px
- intpy
- int
public void revalidateFieldsPosition()
revalidateFieldsPosition
in class LinkManagerObject
public void updateTemplateFields()
public void initializeLinkFields()
public EPICSLink addPortField(VDBPort port)
port
- public EPICSLink addMacroField(VDBMacro macro)
macro
- public void manageLinks()
public void addLink(Linkable link)
addLink
in interface Hub
link
- com.cosylab.vdct.graphics.objects.Linkablepublic void removeLink(Linkable link)
removeLink
in interface Hub
link
- com.cosylab.vdct.graphics.objects.Linkablepublic void fieldChanged(VDBFieldData field)
fieldChanged
in class LinkManagerObject
field
- com.cosylab.vdct.vdb.VDBFieldDatapublic VDBFieldData getField(java.lang.String name)
getField
in class LinkManagerObject
public InspectableProperty addProperty(java.lang.String key, java.lang.String value)
addProperty
in interface CreatorPropertyListener
public void addProperty()
addProperty
in interface MonitoredPropertyListener
MonitoredPropertyListener.addProperty()
public void propertyChanged(InspectableProperty property)
propertyChanged
in interface MonitoredPropertyListener
MonitoredPropertyListener.propertyChanged(InspectableProperty)
public void removeProperty(InspectableProperty property)
removeProperty
in interface MonitoredPropertyListener
MonitoredPropertyListener.removeProperty(InspectableProperty)
public void renameProperty(InspectableProperty property)
renameProperty
in interface MonitoredPropertyListener
MonitoredPropertyListener.renameProperty(InspectableProperty)
public void addInvalidLink(EPICSLink field)
addInvalidLink
in class LinkManagerObject
public void removeInvalidLink(EPICSLink field)
removeInvalidLink
in class LinkManagerObject
public void destroy()
destroy
in class VisibleObject
public void setDestroyed(boolean newDestroyed)
VisibleObject
setDestroyed
in class VisibleObject
newDestroyed
- booleanVisibleObject.setDestroyed(boolean)
public Flexible copyToGroup(java.lang.Object dsId, java.lang.String group)
Flexible
copyToGroup
in interface Flexible
group
- java.lang.Stringcom.cosylab.vdct.graphics.objects.Flexible#copyToGroup(String)
public void fixMacrosOnCopy(java.lang.String prevGroup, java.lang.String group)
e
- java.util.Enumeration list of VDBFieldData fieldsprevGroup
- java.lang.Stringgroup
- java.lang.Stringpublic boolean moveToGroup(java.lang.Object dsId, java.lang.String group)
Flexible
moveToGroup
in interface Flexible
group
- java.lang.Stringcom.cosylab.vdct.graphics.objects.Flexible#moveToGroup(String)
public boolean rename(java.lang.Object dsId, java.lang.String newName)
Flexible
rename
in interface Flexible
newName
- java.lang.Stringcom.cosylab.vdct.graphics.objects.Flexible#rename(String)
protected void destroyFields()
destroyFields
in class LinkManagerObject
protected void undestroyFields()
public void writeObjects(java.io.DataOutputStream file, NamingContext context, boolean export) throws java.io.IOException
SaveInterface
writeObjects
in interface SaveInterface
file
- java.io.DataOutputStream
java.io.IOException
- The exception description.com.cosylab.vdct.graphics.objects.SaveInterface#writeObjects(DataOutputStream, String)
public static java.util.Map prepareSubstitutions(VDBTemplateInstance templateData, java.util.Map substitutions, java.util.Map ports)
substitutions
- group
current substitutionspublic static java.util.Map preparePorts(Group group, java.util.Map substitutions, NameManipulator namer)
substitutions
- group
current substitutionspublic void writeVDCTObjects(java.io.DataOutputStream file, NamingContext renamer, boolean export) throws java.io.IOException
SaveInterface
writeVDCTObjects
in interface SaveInterface
file
- java.io.DataOutputStream
java.io.IOException
- The exception description.com.cosylab.vdct.graphics.objects.SaveInterface#writeVDCTData(DataOutputStream, String)
public java.util.ArrayList getModeNames()
Inspectable
getModeNames
in interface Inspectable
Inspectable.getModeNames()
public void generateMacros(java.util.HashMap macros)
linkableMacros
- macros
- deep
- public void fieldSideChange(EPICSLink link, boolean isRight)
link
- isRight
- public void fieldVisibilityChange(VDBFieldData fieldData, boolean newVisible)
field
- oldValue
- newValue
- public boolean isFirstField(Field field)
isFirstField
in class LinkManagerObject
field
- com.cosylab.vdct.graphics.objects.Field
public boolean isLastField(Field field)
isLastField
in class LinkManagerObject
field
- com.cosylab.vdct.graphics.objects.Fieldpublic void moveFieldDown(Field field)
moveFieldDown
in class LinkManagerObject
field
- com.cosylab.vdct.graphics.objects.Fieldpublic void moveFieldUp(Field field)
moveFieldUp
in class LinkManagerObject
field
- com.cosylab.vdct.graphics.objects.Fieldpublic java.lang.String getType()
getType
in interface Morphable
Morphable.getType()
public boolean morph(java.lang.String newType)
Morphable
morph
in interface Morphable
newType
- java.lang.StringMorphable.morph(java.lang.String)
public void setTemplateInstance(VDBTemplateInstance templateInstance)
templateInstance
- public java.lang.Object[] getTargets()
getTargets
in interface Morphable
Morphable.getTargets()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |