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 boolean
disposed
protected Object
dsId
protected String
name
protected String
namePrefix
protected Vector
structure
-
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 void
accept(Visitor visitor)
Insert the method's description here.void
addSubObject(String id, VisibleObject object)
Insert the method's description here.void
addSubObject(String id, VisibleObject object, boolean create)
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.static Group
createGroup(Object dsId, String name)
Insert the method's description here.void
destroy()
Insert the method's description here.protected void
draw(Graphics g, boolean hilited)
Insert the method's description here.Object
findObject(String objectName, boolean deep)
Insert the method's description here.void
fixLinks(boolean deep)
This method has to be called to fix links after move, copy...void
generateMacros(HashMap macros, boolean deep)
int
getAbsoluteHeight()
String
getAbsoluteName()
Insert the method's description here.int
getAbsoluteWidth()
static Vector
getAllRoots()
static Group
getClipboard()
Insert the method's description here.String
getDescription()
Insert the method's description here.Object
getDsId()
static VDBTemplate
getEditingTemplateData(Object dsId)
Returns the editingTemplateData.String
getFlexibleName()
Insert the method's description here.String
getHashID()
Insert the method's description here.ViewState
getLocalView()
Insert the method's description here.Hashtable
getLookupTable()
Returns the lookupTable.String
getName()
Insert the method's description here.String
getNamePrefix()
Insert the method's description here.static Group
getRoot()
Returns the root group currently displayed by active drawing surface, or null in there are no drawing surfaces open.static Group
getRoot(Object id)
Vector
getStructure()
Returns the structure.Object
getSubObject(String id)
Insert the method's description here.static String
getVDCTData(Object dsId)
static boolean
hasMacroPortsIDChanged(Object dsId)
static boolean
hasTokens(String name)
Insert the method's description here.VisibleObject
hiliteComponentsCheck(int x, int y)
Returned value inicates change Creation date: (21.12.2000 22:21:12)void
initializeLayout()
Insert the method's description here.boolean
isDisposed()
void
manageLinks(boolean deep)
Insert the method's description here.boolean
move(int dx, int dy)
Insert the method's description here.boolean
moveToGroup(Object dsId, String group)
Insert the method's description here.void
onDsAdded(Object id)
void
onDsFocused(Object id)
void
onDsRemoved(Object id)
void
paintComponents(Graphics g, boolean hilited)
Insert the method's description here.void
paintComponents(Graphics g, boolean hilited, boolean flatten)
Insert the method's description here.static void
registerDsListener()
Object
removeObject(String id)
Insert the method's description here.boolean
rename(Object dsId, String newName)
Insert the method's description here.void
reset()
Resets certain parameters of the subobjects (validationsCounter in Record).void
revalidatePosition()
Insert the method's description here.static void
save(Object dsId, Group group2save, File file, boolean export)
Insert the method's description here.static void
save(Object dsId, Group group2save, File file, NamingContext renamer, boolean export)
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
setAbsoluteName(String absoluteName)
Insert the method's description here.void
setDescription(String description)
Insert the method's description here.void
setDsId(Object dsId)
static void
setEditingTemplateData(Object dsId, VDBTemplate editingTemplateData)
Sets the editingTemplateData.void
setLocalView(ViewState newLocalView)
Insert the method's description here.void
setLookupTable(Hashtable lookupTable)
Sets the lookupTable.void
setName(String newName)
Insert the method's description here.void
setNamePrefix(String newNamePrefix)
Insert the method's description here.static void
setRoot(Object dsId, Group newRoot)
static String
substractObjectName(String name)
Insert the method's description here.static String
substractParentName(String name)
Insert the method's description here.static String
substractRelativeName(String groupName, String objName)
Insert the method's description here.static String
substractToken(String name)
Insert the method's description here.void
unconditionalValidateSubObjects(boolean flat)
Insert the method's description here.protected void
validate()
Insert the method's description here.void
validateSubObjects()
Insert the method's description here.void
writeObjects(Writer writer, NamingContext renamer, boolean export)
Insert the method's description here.static void
writeObjects(Object dsId, Vector elements, DataOutputStream stream, NamingContext renamer, boolean export)
static void
writeObjects(Object dsId, Vector elements, Writer writer, NamingContext renamer, boolean export)
Insert the method's description here.static void
writeTemplateData(Object dsId, DataOutputStream stream, NamingContext renamer, Vector allowedPortMacroSet)
Insert the method's description here.static void
writeTemplateData(Object dsId, Writer writer, NamingContext renamer, Vector allowedPortMacroSet)
void
writeVDCTObjects(Writer writer, NamingContext renamer, boolean export)
Insert the method's description here.static void
writeVDCTObjects(Vector elements, DataOutputStream stream, NamingContext renamer, boolean export)
static void
writeVDCTObjects(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:
addSubObject
in 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:
addSubObject
in 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:
copyToGroup
in 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:
destroy
in 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:
draw
in 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:
getDescription
in 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:
getFlexibleName
in 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:
getHashID
in 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:
getSubObject
in 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:
moveToGroup
in 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:
removeObject
in 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:
revalidatePosition
in 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:
setDescription
in 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:
validate
in 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:
writeObjects
in 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:SaveInterface
Insert the method's description here. Creation date: (22.4.2001 21:47:00)- Specified by:
writeVDCTObjects
in 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:
getDsId
in 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:
onDsAdded
in interfaceDsEventListener
- Parameters:
id
- id
-
onDsRemoved
public void onDsRemoved(Object id)
- Specified by:
onDsRemoved
in interfaceDsEventListener
- Parameters:
id
- id
-
onDsFocused
public void onDsFocused(Object id)
- Specified by:
onDsFocused
in interfaceDsEventListener
- Parameters:
id
- id
-
-