Package com.wisecoders.dbs.diagram.model
Class Group<T extends Entity>
java.lang.Object
com.wisecoders.dbs.diagram.model.AbstractUnit
com.wisecoders.dbs.diagram.model.Group<T>
- All Implemented Interfaces:
Depictable
,TreeUnit
,Unit
,Comparable<AbstractUnit>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final javafx.scene.paint.Color
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal void
attachAllDepicts
(Collection<Depict<T>> depicts) final void
attachAllTables
(Collection<T> tables) final void
attachDepict
(Depict<T> depict) void
bringToFront
(Depict<T> depict) final boolean
Detaches an entityfinal void
dettachAll
(Collection<Depict<T>> someDepicts) Detaches the given entitiesjavafx.scene.paint.Color
javafx.scene.paint.Color
javafx.scene.paint.Color
getColor()
double
getDependencyCost
(Depictable other) double
getGlobalCost
(String otherName) com.wisecoders.dbs.sys.fx.glyph.Glyph
is
(UnitProperty unitProperty) boolean
void
Call this method to mark a unit (table, column) to be deleted.void
void
moveTo
(double x, double y) void
void
refresh()
void
setColor
(javafx.scene.paint.Color color) void
setComment
(String comment) int
size()
void
translate
(double x, double y) Methods inherited from class com.wisecoders.dbs.diagram.model.AbstractUnit
compareTo, fixNull, getByName, getByName, getChildAt, getChildrenCount, getCommentNotNull, getCommentTag, getCommentTags, getDefaultKey, getDisplayName, getKey, getName, getPlainName, getPropertyAddOnFolder, getString, getSyncFolders, getTickId, getTouchId, getUnitProperty, has, is, isVirtual, matches, ref, removeUnitProperty, rename, sameAs, sameAs, setCommentTag, setCommentTags, setTouchId, setUnitProperty, setVirtual, toString
-
Field Details
-
DEFAULT_COLOR
public static final javafx.scene.paint.Color DEFAULT_COLOR -
diagram
-
-
Constructor Details
-
Group
-
-
Method Details
-
getLayout
-
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() -
isMarkedForDeletion
public boolean isMarkedForDeletion()- Specified by:
isMarkedForDeletion
in interfaceDepictable
- Specified by:
isMarkedForDeletion
in interfaceUnit
- Overrides:
isMarkedForDeletion
in classAbstractUnit
-
markForDeletion
public void markForDeletion()Description copied from class:AbstractUnit
Call this method to mark a unit (table, column) to be deleted. It can be called from any thread. The effective deletion is done by calling project.refresh() or schema.refresh() on JavaFX GUI thread.- Specified by:
markForDeletion
in interfaceUnit
- Overrides:
markForDeletion
in classAbstractUnit
-
getPosition
- Specified by:
getPosition
in interfaceDepictable
-
moveTo
public void moveTo(double x, double y) - Specified by:
moveTo
in interfaceDepictable
-
translate
public void translate(double x, double y) - Specified by:
translate
in interfaceDepictable
-
getEntity
-
getParentEntity
- Specified by:
getParentEntity
in interfaceUnit
- Overrides:
getParentEntity
in classAbstractUnit
-
attachAllTables
-
attachAllDepicts
-
attachDepict
-
getDepicts
-
dettachAll
Detaches the given entities- Parameters:
someDepicts
- to dettach
-
dettach
Detaches an entity- Parameters:
depict
- to dettach- Returns:
- true if successfully dettached
-
refresh
public void refresh()- Specified by:
refresh
in interfaceDepictable
- Specified by:
refresh
in classAbstractUnit
-
bringToFront
-
getComment
- Specified by:
getComment
in interfaceUnit
- Overrides:
getComment
in classAbstractUnit
-
setComment
- Specified by:
setComment
in interfaceUnit
- Overrides:
setComment
in classAbstractUnit
-
getSymbolicName
- Specified by:
getSymbolicName
in interfaceUnit
- Specified by:
getSymbolicName
in classAbstractUnit
-
size
public int size() -
mergeWith
-
orderDepictsAndRenameGroup
public void orderDepictsAndRenameGroup() -
getGlobalCost
- Specified by:
getGlobalCost
in interfaceDepictable
-
getDependencyCost
- Specified by:
getDependencyCost
in interfaceDepictable
-
is
- Specified by:
is
in interfaceUnit
- Overrides:
is
in classAbstractUnit
-
getParent
- Specified by:
getParent
in interfaceTreeUnit
- Specified by:
getParent
in classAbstractUnit
-
getSymbolicIcon
- Specified by:
getSymbolicIcon
in classAbstractUnit
-
getSymbolicGlyph
public com.wisecoders.dbs.sys.fx.glyph.Glyph getSymbolicGlyph()- Specified by:
getSymbolicGlyph
in classAbstractUnit
-