Class Group<T extends Entity>

    • Field Detail


        public static final javafx.scene.paint.Color DEFAULT_COLOR
    • Constructor Detail

      • Group

        public Group​(Diagram<T> diagram)
    • Method Detail

      • getLayout

        public Diagram<T> getLayout()
      • setName

        public void setName​(java.lang.String name)
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface Unit
      • setColor

        public void setColor​(javafx.scene.paint.Color color)
      • getColor

        public javafx.scene.paint.Color getColor()
      • getBorderColor

        public javafx.scene.paint.Color getBorderColor()
      • getBorderSelectedColor

        public javafx.scene.paint.Color getBorderSelectedColor()
      • markForDeletion

        public void markForDeletion()
        Specified by:
        markForDeletion in interface Unit
      • moveTo

        public void moveTo​(int x,
                           int y)
        Specified by:
        moveTo in interface Depictable
      • translate

        public void translate​(int x,
                              int y)
        Specified by:
        translate in interface Depictable
      • attachAllTables

        public final void attachAllTables​(java.util.Collection<T> tables)
      • attachAllDepicts

        public final void attachAllDepicts​(java.util.Collection<Depict<T>> depicts)
      • attachDepict

        public final void attachDepict​(Depict<T> depict)
      • getDepicts

        public final java.util.List<Depict<T>> getDepicts()
      • dettachAll

        public final void dettachAll​(java.util.Collection<Depict> someDepicts)
        Detaches the given entities
        someDepicts - to dettach
      • dettach

        public final boolean dettach​(Depict depict)
        Detaches an entity
        depict - to dettach
        true if successfully dettached
      • bringToFront

        public void bringToFront​(Depict depict)
      • getComment

        public java.lang.String getComment()
        Specified by:
        getComment in interface Unit
      • setComment

        public void setComment​(java.lang.String comment)
        Specified by:
        setComment in interface Unit
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object
      • getSymbolicName

        public java.lang.String getSymbolicName()
        Specified by:
        getSymbolicName in interface Unit
      • size

        public int size()
      • mergeWith

        public void mergeWith​(Group<T> other)
      • orderDepictsAndRenameGroup

        public void orderDepictsAndRenameGroup()
      • getGlobalCost

        public double getGlobalCost​(java.lang.String otherName)
        Specified by:
        getGlobalCost in interface Depictable