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 voidattachAllDepicts(Collection<Depict<T>> depicts) final voidattachAllTables(Collection<T> tables) final voidattachDepict(Depict<T> depict) voidbringToFront(Depict<T> depict) final booleanDetaches an entityfinal voiddettachAll(Collection<Depict<T>> someDepicts) Detaches the given entitiesjavafx.scene.paint.Colorjavafx.scene.paint.Colorjavafx.scene.paint.ColorgetColor()doublegetDependencyCost(Depictable other) doublegetGlobalCost(String otherName) com.wisecoders.dbs.sys.fx.glyph.Glyphis(UnitProperty unitProperty) booleanvoidCall this method to mark a unit (table, column) to be deleted.voidvoidmoveTo(double x, double y) voidvoidrefresh()voidsetColor(javafx.scene.paint.Color color) voidsetComment(String comment) intsize()voidtranslate(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:
isMarkedForDeletionin interfaceDepictable- Specified by:
isMarkedForDeletionin interfaceUnit- Overrides:
isMarkedForDeletionin classAbstractUnit
-
markForDeletion
public void markForDeletion()Description copied from class:AbstractUnitCall 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:
markForDeletionin interfaceUnit- Overrides:
markForDeletionin classAbstractUnit
-
getPosition
- Specified by:
getPositionin interfaceDepictable
-
moveTo
public void moveTo(double x, double y) - Specified by:
moveToin interfaceDepictable
-
translate
public void translate(double x, double y) - Specified by:
translatein interfaceDepictable
-
getEntity
-
getParentEntity
- Specified by:
getParentEntityin interfaceUnit- Overrides:
getParentEntityin 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:
refreshin interfaceDepictable- Specified by:
refreshin classAbstractUnit
-
bringToFront
-
getComment
- Specified by:
getCommentin interfaceUnit- Overrides:
getCommentin classAbstractUnit
-
setComment
- Specified by:
setCommentin interfaceUnit- Overrides:
setCommentin classAbstractUnit
-
getSymbolicName
- Specified by:
getSymbolicNamein interfaceUnit- Specified by:
getSymbolicNamein classAbstractUnit
-
size
public int size() -
mergeWith
-
orderDepictsAndRenameGroup
public void orderDepictsAndRenameGroup() -
getGlobalCost
- Specified by:
getGlobalCostin interfaceDepictable
-
getDependencyCost
- Specified by:
getDependencyCostin interfaceDepictable
-
is
- Specified by:
isin interfaceUnit- Overrides:
isin classAbstractUnit
-
getParent
- Specified by:
getParentin interfaceTreeUnit- Specified by:
getParentin classAbstractUnit
-
getSymbolicIcon
- Specified by:
getSymbolicIconin classAbstractUnit
-
getSymbolicGlyph
public com.wisecoders.dbs.sys.fx.glyph.Glyph getSymbolicGlyph()- Specified by:
getSymbolicGlyphin classAbstractUnit
-