Class Group
- java.lang.Object
-
- com.cosylab.vdct.graphics.objects.VisibleObject
-
- com.cosylab.vdct.graphics.objects.ContainerObject
-
- com.cosylab.vdct.graphics.objects.Group
-
- All Implemented Interfaces:
DsEventListener,Clipboardable,Descriptable,Flexible,Movable,SaveInterface,SaveObject,Selectable,Visitable
public class Group extends ContainerObject implements Clipboardable, Descriptable, Flexible, Movable, SaveInterface, Selectable, SaveObject, DsEventListener
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 booleandisposedprotected ObjectdsIdprotected Stringnameprotected StringnamePrefixprotected Vectorstructure-
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 Group(ContainerObject parent)Group constructor comment.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Visitor visitor)Insert the method's description here.voidaddSubObject(String id, VisibleObject object)Insert the method's description here.voidaddSubObject(String id, VisibleObject object, boolean create)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.static GroupcreateGroup(Object dsId, String name)Insert the method's description here.voiddestroy()Insert the method's description here.protected voiddraw(Graphics g, boolean hilited)Insert the method's description here.ObjectfindObject(String objectName, boolean deep)Insert the method's description here.voidfixLinks(boolean deep)This method has to be called to fix links after move, copy...voidgenerateMacros(HashMap macros, boolean deep)intgetAbsoluteHeight()StringgetAbsoluteName()Insert the method's description here.intgetAbsoluteWidth()static VectorgetAllRoots()static GroupgetClipboard()Insert the method's description here.StringgetDescription()Insert the method's description here.ObjectgetDsId()static VDBTemplategetEditingTemplateData(Object dsId)Returns the editingTemplateData.StringgetFlexibleName()Insert the method's description here.StringgetHashID()Insert the method's description here.ViewStategetLocalView()Insert the method's description here.HashtablegetLookupTable()Returns the lookupTable.StringgetName()Insert the method's description here.StringgetNamePrefix()Insert the method's description here.static GroupgetRoot()Returns the root group currently displayed by active drawing surface, or null in there are no drawing surfaces open.static GroupgetRoot(Object id)VectorgetStructure()Returns the structure.ObjectgetSubObject(String id)Insert the method's description here.static StringgetVDCTData(Object dsId)static booleanhasMacroPortsIDChanged(Object dsId)static booleanhasTokens(String name)Insert the method's description here.VisibleObjecthiliteComponentsCheck(int x, int y)Returned value inicates change Creation date: (21.12.2000 22:21:12)voidinitializeLayout()Insert the method's description here.booleanisDisposed()voidmanageLinks(boolean deep)Insert the method's description here.booleanmove(int dx, int dy)Insert the method's description here.booleanmoveToGroup(Object dsId, String group)Insert the method's description here.voidonDsAdded(Object id)voidonDsFocused(Object id)voidonDsRemoved(Object id)voidpaintComponents(Graphics g, boolean hilited)Insert the method's description here.voidpaintComponents(Graphics g, boolean hilited, boolean flatten)Insert the method's description here.static voidregisterDsListener()ObjectremoveObject(String id)Insert the method's description here.booleanrename(Object dsId, String newName)Insert the method's description here.voidreset()Resets certain parameters of the subobjects (validationsCounter in Record).voidrevalidatePosition()Insert the method's description here.static voidsave(Object dsId, Group group2save, File file, boolean export)Insert the method's description here.static voidsave(Object dsId, Group group2save, File file, NamingContext renamer, boolean export)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)voidsetAbsoluteName(String absoluteName)Insert the method's description here.voidsetDescription(String description)Insert the method's description here.voidsetDsId(Object dsId)static voidsetEditingTemplateData(Object dsId, VDBTemplate editingTemplateData)Sets the editingTemplateData.voidsetLocalView(ViewState newLocalView)Insert the method's description here.voidsetLookupTable(Hashtable lookupTable)Sets the lookupTable.voidsetName(String newName)Insert the method's description here.voidsetNamePrefix(String newNamePrefix)Insert the method's description here.static voidsetRoot(Object dsId, Group newRoot)static StringsubstractObjectName(String name)Insert the method's description here.static StringsubstractParentName(String name)Insert the method's description here.static StringsubstractRelativeName(String groupName, String objName)Insert the method's description here.static StringsubstractToken(String name)Insert the method's description here.voidunconditionalValidateSubObjects(boolean flat)Insert the method's description here.protected voidvalidate()Insert the method's description here.voidvalidateSubObjects()Insert the method's description here.voidwriteObjects(Writer writer, NamingContext renamer, boolean export)Insert the method's description here.static voidwriteObjects(Object dsId, Vector elements, DataOutputStream stream, NamingContext renamer, boolean export)static voidwriteObjects(Object dsId, Vector elements, Writer writer, NamingContext renamer, boolean export)Insert the method's description here.static voidwriteTemplateData(Object dsId, DataOutputStream stream, NamingContext renamer, Vector allowedPortMacroSet)Insert the method's description here.static voidwriteTemplateData(Object dsId, Writer writer, NamingContext renamer, Vector allowedPortMacroSet)voidwriteVDCTObjects(Writer writer, NamingContext renamer, boolean export)Insert the method's description here.static voidwriteVDCTObjects(Vector elements, DataOutputStream stream, NamingContext renamer, boolean export)static voidwriteVDCTObjects(Vector elements, Writer writer, NamingContext renamer, boolean export)Insert the method's description here.-
Methods inherited from class com.cosylab.vdct.graphics.objects.ContainerObject
addSubObject, clear, containsObject, getRootContainer, getSubObjects, getSubObjectsV, updateFields
-
Methods inherited from class com.cosylab.vdct.graphics.objects.VisibleObject
forceValidation, getColor, getFont, 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, postDraw, postPaint, setColor, setDestroyed, setFont, setHeight, setLabel, setParent, setRheight, setRlabelX, setRlabelY, setRwidth, setRx, setRy, setScale, setWidth, setX, setY, setZoomRepaint, snapToGrid, unconditionalValidation
-
-
-
-
Constructor Detail
-
Group
public Group(ContainerObject parent)
Group constructor comment.- Parameters:
parent- com.cosylab.vdct.graphics.objects.ContainerObject
-
-
Method Detail
-
accept
public void accept(Visitor visitor)
Insert the method's description here. Creation date: (21.12.2000 20:46:35)
-
addSubObject
public void addSubObject(String id, VisibleObject object)
Insert the method's description here. Creation date: (21.12.2000 20:30:04)- Overrides:
addSubObjectin classContainerObject- Parameters:
id- java.lang.Stringobject- com.cosylab.vdct.graphics.objects.VisibleObject
-
addSubObject
public void addSubObject(String id, VisibleObject object, boolean create)
Insert the method's description here. IDs are relative Creation date: (28.1.2001 17:10:46)- Overrides:
addSubObjectin classContainerObject- Parameters:
id- java.lang.Stringobject- com.cosylab.vdct.graphics.objects.VisibleObjectcreate- boolean
-
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:39)- Specified by:
copyToGroupin interfaceFlexible- Parameters:
dsId- dsIdgroup- java.lang.String- Returns:
- something
-
createGroup
public static Group createGroup(Object dsId, String name)
Insert the method's description here. IDs are relative Creation date: (28.1.2001 17:10:46)- Parameters:
dsId- dsIdname- java.lang.String- Returns:
- something
-
destroy
public void destroy()
Insert the method's description here. Creation date: (4.2.2001 16:23:37)- Overrides:
destroyin classVisibleObject
-
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
-
findObject
public Object findObject(String objectName, boolean deep)
Insert the method's description here. Creation date: (28.1.2001 11:13:31)- Parameters:
objectName- java.lang.Stringdeep- boolean- Returns:
- com.cosylab.vdct.graphics.objects.Record
-
fixLinks
public void fixLinks(boolean deep)
This method has to be called to fix links after move, copy... Creation date: (30.1.2001 11:37:45)- Parameters:
deep- boolean
-
getAbsoluteName
public String getAbsoluteName()
Insert the method's description here. Creation date: (21.12.2000 20:52:35)- Returns:
- java.lang.String
-
getClipboard
public static Group getClipboard()
Insert the method's description here. Creation date: (5.2.2001 14:42:24)- Returns:
- com.cosylab.vdct.graphics.objects.Group
-
getDescription
public String getDescription()
Insert the method's description here. Creation date: (24.4.2001 17:41:21)- Specified by:
getDescriptionin interfaceDescriptable- Returns:
- java.lang.String
-
getFlexibleName
public String getFlexibleName()
Insert the method's description here. Creation date: (3.5.2001 10:17:13)- Specified by:
getFlexibleNamein interfaceFlexible- Returns:
- java.lang.String
-
getHashID
public String getHashID()
Insert the method's description here. Creation date: (3.5.2001 16:42:04)- Specified by:
getHashIDin classVisibleObject- Returns:
- java.lang.String
-
getLocalView
public ViewState getLocalView()
Insert the method's description here. Creation date: (3.5.2001 13:28:45)- Returns:
- com.cosylab.vdct.graphics.ViewState
-
getName
public String getName()
Insert the method's description here. Creation date: (21.12.2000 20:51:29)- Returns:
- java.lang.String
-
getNamePrefix
public String getNamePrefix()
Insert the method's description here. Creation date: (21.12.2000 20:51:29)- Returns:
- java.lang.String
-
getRoot
public static Group getRoot()
Returns the root group currently displayed by active drawing surface, or null in there are no drawing surfaces open. Creation date: (28.1.2001 11:32:14)- Returns:
- com.cosylab.vdct.graphics.objects.Group
-
getSubObject
public Object getSubObject(String id)
Insert the method's description here. Creation date: (28.1.2001 16:54:17)- Overrides:
getSubObjectin classContainerObject- Parameters:
id- java.lang.String- Returns:
- java.lang.Object
-
hasTokens
public static boolean hasTokens(String name)
Insert the method's description here. Creation date: (28.1.2001 11:50:26)- Parameters:
name- java.lang.String- Returns:
- boolean
-
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.vdct.graphics.object.VisibleObject
-
initializeLayout
public void initializeLayout()
Insert the method's description here. Creation date: (1.2.2001 14:09:39)
-
manageLinks
public void manageLinks(boolean deep)
Insert the method's description here. Creation date: (30.1.2001 11:37:45)- Parameters:
deep- boolean
-
move
public boolean move(int dx, int dy)Insert the method's description here. Creation date: (25.12.2000 14:14:35)
-
moveToGroup
public boolean moveToGroup(Object dsId, String group)
Insert the method's description here. Creation date: (4.2.2001 22:02:39)- Specified by:
moveToGroupin interfaceFlexible- Parameters:
dsId- dsIdgroup- java.lang.String- Returns:
- something
-
paintComponents
public void paintComponents(Graphics g, boolean hilited)
Insert the method's description here. Creation date: (21.12.2000 21:58:56)- Parameters:
g- java.awt.Graphicshilited- boolean
-
paintComponents
public void paintComponents(Graphics g, boolean hilited, boolean flatten)
Insert the method's description here. Creation date: (21.12.2000 21:58:56)- Parameters:
g- java.awt.Graphicshilited- booleanflatten- flatten
-
removeObject
public Object removeObject(String id)
Insert the method's description here. Creation date: (21.12.2000 20:32:49)- Overrides:
removeObjectin classContainerObject- Parameters:
id- java.lang.String- Returns:
- java.lang.Object
-
rename
public boolean rename(Object dsId, String newName)
Insert the method's description here. Creation date: (2.5.2001 23:23:42)
-
revalidatePosition
public void revalidatePosition()
Insert the method's description here. Creation date: (21.12.2000 21:22:45)- Specified by:
revalidatePositionin classVisibleObject
-
selectAllComponents
public boolean selectAllComponents()
Insert the method's description here. Creation date: (27.12.2000 12:45:23)- Returns:
- boolean
-
selectComponentsCheck
public boolean selectComponentsCheck(int x1, int y1, int x2, int y2)Returned value inicates change Creation date: (21.12.2000 22:21:12)- Parameters:
x1- inty1- intx2- inty2- int- Returns:
- boolean anyNew
-
setAbsoluteName
public void setAbsoluteName(String absoluteName)
Insert the method's description here. Creation date: (28.1.2001 11:43:27)- Parameters:
absoluteName- java.lang.String
-
setDescription
public void setDescription(String description)
Insert the method's description here. Creation date: (24.4.2001 17:41:21)- Specified by:
setDescriptionin interfaceDescriptable- Parameters:
description- java.lang.String
-
setLocalView
public void setLocalView(ViewState newLocalView)
Insert the method's description here. Creation date: (3.5.2001 13:28:45)- Parameters:
newLocalView- com.cosylab.vdct.graphics.ViewState
-
setName
public void setName(String newName)
Insert the method's description here. Creation date: (21.12.2000 20:51:29)- Parameters:
newName- java.lang.String
-
setNamePrefix
public void setNamePrefix(String newNamePrefix)
Insert the method's description here. Creation date: (21.12.2000 20:51:29)- Parameters:
newNamePrefix- java.lang.String
-
setRoot
public static void setRoot(Object dsId, Group newRoot)
- Parameters:
dsId- dsIdnewRoot- newRoot
-
substractObjectName
public static String substractObjectName(String name)
Insert the method's description here. Creation date: (28.1.2001 18:15:47)- Parameters:
name- java.lang.String- Returns:
- java.lang.String
-
substractParentName
public static String substractParentName(String name)
Insert the method's description here. Creation date: (28.1.2001 18:15:47)- Parameters:
name- java.lang.String- Returns:
- java.lang.String
-
substractRelativeName
public static String substractRelativeName(String groupName, String objName)
Insert the method's description here. Creation date: (28.1.2001 11:36:31)- Parameters:
groupName- groupNameobjName- objName- Returns:
- something
-
substractToken
public static String substractToken(String name)
Insert the method's description here. Creation date: (28.1.2001 11:49:56)- Parameters:
name- java.lang.String- Returns:
- java.lang.String
-
unconditionalValidateSubObjects
public void unconditionalValidateSubObjects(boolean flat)
Insert the method's description here. Creation date: (26.1.2001 17:19:47)- Parameters:
flat- flat
-
validate
protected void validate()
Insert the method's description here. Creation date: (21.12.2000 20:46:35)- Specified by:
validatein classVisibleObject
-
validateSubObjects
public void validateSubObjects()
Insert the method's description here. Creation date: (26.1.2001 17:19:47)
-
writeObjects
public void writeObjects(Writer writer, NamingContext renamer, boolean export) throws IOException
Insert the method's description here. Creation date: (22.4.2001 21:51:25)- Specified by:
writeObjectsin interfaceSaveInterface- Parameters:
writer- java.io.DataOutputStreamrenamer- renamerexport- export- Throws:
IOException- The exception description.
-
writeObjects
public static void writeObjects(Object dsId, Vector elements, DataOutputStream stream, NamingContext renamer, boolean export) throws IOException
- Parameters:
dsId- dsIdelements- elementsstream- streamrenamer- renamerexport- export- Throws:
IOException- foo
-
writeObjects
public static void writeObjects(Object dsId, Vector elements, Writer writer, NamingContext renamer, boolean export) throws IOException
Insert the method's description here. Creation date: (22.4.2001 21:51:25)- Parameters:
dsId- dsIdelements- elementswriter- java.io.DataOutputStreamexport- exportrenamer- renamer- Throws:
IOException- The exception description.
-
getVDCTData
public static String getVDCTData(Object dsId)
- Parameters:
dsId- dsId- Returns:
- something
-
writeVDCTObjects
public void writeVDCTObjects(Writer writer, NamingContext renamer, boolean export) throws IOException
Description copied from interface:SaveInterfaceInsert the method's description here. Creation date: (22.4.2001 21:47:00)- Specified by:
writeVDCTObjectsin interfaceSaveInterface- Parameters:
writer- writerrenamer- renamerexport- export- Throws:
IOException- foo
-
writeVDCTObjects
public static void writeVDCTObjects(Vector elements, DataOutputStream stream, NamingContext renamer, boolean export) throws IOException
- Parameters:
elements- elementsstream- streamrenamer- renamerexport- export- Throws:
IOException- foo
-
writeVDCTObjects
public static void writeVDCTObjects(Vector elements, Writer writer, NamingContext renamer, boolean export) throws IOException
Insert the method's description here. Creation date: (22.4.2001 21:51:25)- Parameters:
elements- elementswriter- java.io.DataOutputStreamrenamer- renamerexport- export- Throws:
IOException- The exception description.
-
writeTemplateData
public static void writeTemplateData(Object dsId, DataOutputStream stream, NamingContext renamer, Vector allowedPortMacroSet) throws IOException
Insert the method's description here.- Parameters:
dsId- dsIdstream- streamrenamer- renamerallowedPortMacroSet- allowedPortMacroSet- Throws:
IOException- foo
-
writeTemplateData
public static void writeTemplateData(Object dsId, Writer writer, NamingContext renamer, Vector allowedPortMacroSet) throws IOException
- Parameters:
dsId- dsIdwriter- writerrenamer- renamerallowedPortMacroSet- allowedPortMacroSet- Throws:
IOException- foo
-
save
public static void save(Object dsId, Group group2save, File file, boolean export) throws IOException
Insert the method's description here.- Parameters:
dsId- dsIdfile- filegroup2save- group2saveexport- export- Throws:
IOException- foo
-
save
public static void save(Object dsId, Group group2save, File file, NamingContext renamer, boolean export) throws IOException
Insert the method's description here.- Parameters:
dsId- dsIdgroup2save- group2savefile- filerenamer- renamerexport- export- Throws:
IOException- foo
-
getLookupTable
public Hashtable getLookupTable()
Returns the lookupTable.- Returns:
- Hashtable
-
setLookupTable
public void setLookupTable(Hashtable lookupTable)
Sets the lookupTable.- Parameters:
lookupTable- The lookupTable to set
-
getEditingTemplateData
public static VDBTemplate getEditingTemplateData(Object dsId)
Returns the editingTemplateData.- Parameters:
dsId- dsId- Returns:
- VDBTemplate
-
setEditingTemplateData
public static void setEditingTemplateData(Object dsId, VDBTemplate editingTemplateData)
Sets the editingTemplateData.- Parameters:
dsId- dsIdeditingTemplateData- The editingTemplateData to set
-
hasMacroPortsIDChanged
public static boolean hasMacroPortsIDChanged(Object dsId)
- Parameters:
dsId- dsId- Returns:
- something
-
getStructure
public Vector getStructure()
Returns the structure.- Returns:
- Vector
-
getAbsoluteWidth
public int getAbsoluteWidth()
- Returns:
- something
-
getAbsoluteHeight
public int getAbsoluteHeight()
- Returns:
- something
-
generateMacros
public void generateMacros(HashMap macros, boolean deep)
- Parameters:
macros- macrosdeep- deep
-
reset
public void reset()
Resets certain parameters of the subobjects (validationsCounter in Record).
-
getAllRoots
public static Vector getAllRoots()
- Returns:
- something
-
getDsId
public Object getDsId()
- Overrides:
getDsIdin classVisibleObject- Returns:
- something
-
setDsId
public void setDsId(Object dsId)
- Parameters:
dsId- dsId
-
isDisposed
public boolean isDisposed()
- Returns:
- something
-
registerDsListener
public static void registerDsListener()
-
onDsAdded
public void onDsAdded(Object id)
- Specified by:
onDsAddedin interfaceDsEventListener- Parameters:
id- id
-
onDsRemoved
public void onDsRemoved(Object id)
- Specified by:
onDsRemovedin interfaceDsEventListener- Parameters:
id- id
-
onDsFocused
public void onDsFocused(Object id)
- Specified by:
onDsFocusedin interfaceDsEventListener- Parameters:
id- id
-
-