Class Group

    • Field Detail

      • namePrefix

        protected String namePrefix
      • disposed

        protected boolean disposed
      • structure

        protected Vector structure
    • 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)
        Specified by:
        accept in interface Visitable
        Parameters:
        visitor - com.cosylab.vdct.graphics.objects.Visitor
      • 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 class ContainerObject
        Parameters:
        id - java.lang.String
        object - 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 class ContainerObject
        Parameters:
        id - java.lang.String
        object - com.cosylab.vdct.graphics.objects.VisibleObject
        create - boolean
      • checkMove

        public boolean checkMove​(int dx,
                                 int dy)
        Insert the method's description here. Creation date: (25.12.2000 14:14:35)
        Specified by:
        checkMove in interface Movable
        Parameters:
        dx - int
        dy - int
        Returns:
        boolean
      • 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 interface Flexible
        Parameters:
        dsId - dsId
        group - 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 - dsId
        name - 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 class VisibleObject
      • 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 class VisibleObject
        Parameters:
        g - java.awt.Graphics
        hilited - 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.String
        deep - 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 interface Descriptable
        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 interface Flexible
        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 class VisibleObject
        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 class ContainerObject
        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 - int
        y - 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)
        Specified by:
        move in interface Movable
        Parameters:
        dx - int
        dy - int
        Returns:
        boolean
      • 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 interface Flexible
        Parameters:
        dsId - dsId
        group - 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.Graphics
        hilited - 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.Graphics
        hilited - boolean
        flatten - flatten
      • removeObject

        public Object removeObject​(String id)
        Insert the method's description here. Creation date: (21.12.2000 20:32:49)
        Overrides:
        removeObject in class ContainerObject
        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)
        Specified by:
        rename in interface Flexible
        Parameters:
        dsId - dsId
        newName - java.lang.String
        Returns:
        something
      • revalidatePosition

        public void revalidatePosition()
        Insert the method's description here. Creation date: (21.12.2000 21:22:45)
        Specified by:
        revalidatePosition in class VisibleObject
      • 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 - int
        y1 - int
        x2 - int
        y2 - 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 interface Descriptable
        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 - dsId
        newRoot - 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 - groupName
        objName - 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 class VisibleObject
      • 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 interface SaveInterface
        Parameters:
        writer - java.io.DataOutputStream
        renamer - renamer
        export - export
        Throws:
        IOException - The exception description.
      • 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 - dsId
        elements - elements
        writer - java.io.DataOutputStream
        export - export
        renamer - renamer
        Throws:
        IOException - The exception description.
      • getVDCTData

        public static String getVDCTData​(Object dsId)
        Parameters:
        dsId - dsId
        Returns:
        something
      • 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 - elements
        writer - java.io.DataOutputStream
        renamer - renamer
        export - 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 - dsId
        stream - stream
        renamer - renamer
        allowedPortMacroSet - allowedPortMacroSet
        Throws:
        IOException - foo
      • writeTemplateData

        public static void writeTemplateData​(Object dsId,
                                             Writer writer,
                                             NamingContext renamer,
                                             Vector allowedPortMacroSet)
                                      throws IOException
        Parameters:
        dsId - dsId
        writer - writer
        renamer - renamer
        allowedPortMacroSet - 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 - dsId
        file - file
        group2save - group2save
        export - 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 - dsId
        group2save - group2save
        file - file
        renamer - renamer
        export - 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 - dsId
        editingTemplateData - 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 - macros
        deep - deep
      • reset

        public void reset()
        Resets certain parameters of the subobjects (validationsCounter in Record).
      • getRoot

        public static Group getRoot​(Object id)
        Parameters:
        id - id
        Returns:
        something
      • getAllRoots

        public static Vector getAllRoots()
        Returns:
        something
      • setDsId

        public void setDsId​(Object dsId)
        Parameters:
        dsId - dsId
      • isDisposed

        public boolean isDisposed()
        Returns:
        something
      • registerDsListener

        public static void registerDsListener()