Package com.wisecoders.dbs.diagram.model
Class Depict<T extends Entity>
java.lang.Object
com.wisecoders.dbs.diagram.model.Depict<T>
- Type Parameters:
T- can be any class extending the Entity.
- All Implemented Interfaces:
Depictable,Unit
The visual representation of a table or view. This class stores the position of tables, shapes, callouts in the diagram.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.paint.ColorgetColor()getCommentTag(String key) doublegetDependencyCost(Depictable other) getDisplayName(Diagram diagram) doublegetGlobalCost(String otherName) getName()intgetNameWidth(boolean fullQualified) booleanvoidvoidvoidis(UnitProperty unitProperty) booleanbooleanvoidstatic doublemiddleOf(double left, double right) voidmoveTo(double x, double y) ref()voidrefresh()voidsetAttributeVisible(Attribute attr, boolean visible) booleansetColor(javafx.scene.paint.Color color) voidsetComment(String comment) voidsetCommentTag(String key, String value) voidsetCommentTags(Map<String, String> tags) voidsetGroupFree(boolean groupFree) voidsetLocation(double x, double y) voidsetSize(int width, int height) voidtoString()voidtranslate(double dx, double dy)
-
Field Details
-
DEFAULT_COLOR
public static javafx.scene.paint.Color DEFAULT_COLOR -
diagram
-
entity
-
-
Constructor Details
-
Depict
-
-
Method Details
-
getEntity
-
getParentEntity
- Specified by:
getParentEntityin interfaceUnit
-
setLocation
public void setLocation(double x, double y) -
moveTo
public void moveTo(double x, double y) - Specified by:
moveToin interfaceDepictable
-
translate
public void translate(double dx, double dy) - Specified by:
translatein interfaceDepictable
-
setSize
public void setSize(int width, int height) -
getPosition
- Specified by:
getPositionin interfaceDepictable
-
isGroupFree
public boolean isGroupFree() -
setGroupFree
public void setGroupFree(boolean groupFree) -
setAttributeVisible
-
hideAllAttributes
public void hideAllAttributes() -
showAllAttributes
public void showAllAttributes() -
getVisibleAttributes
-
getHiddenAttributes
-
refresh
public void refresh()- Specified by:
refreshin interfaceDepictable
-
isMarkedForDeletion
public boolean isMarkedForDeletion()- Specified by:
isMarkedForDeletionin interfaceDepictable- Specified by:
isMarkedForDeletionin interfaceUnit
-
toString
-
getNameWidth
public int getNameWidth(boolean fullQualified) -
hasHiddenAttributes
public boolean hasHiddenAttributes() -
getName
-
getSymbolicName
- Specified by:
getSymbolicNamein interfaceUnit
-
markForDeletion
public void markForDeletion()- Specified by:
markForDeletionin interfaceUnit
-
setComment
- Specified by:
setCommentin interfaceUnit
-
getComment
- Specified by:
getCommentin interfaceUnit
-
setColor
public boolean setColor(javafx.scene.paint.Color color) -
getColor
public javafx.scene.paint.Color getColor() -
hideColumnsIfDepictIsLarge
public void hideColumnsIfDepictIsLarge() -
hideFunctionalColumns
public void hideFunctionalColumns() -
getGlobalCost
- Specified by:
getGlobalCostin interfaceDepictable
-
getDependencyCost
- Specified by:
getDependencyCostin interfaceDepictable
-
is
-
middleOf
public static double middleOf(double left, double right) -
ref
-
getCommentTags
- Specified by:
getCommentTagsin interfaceUnit
-
setCommentTags
- Specified by:
setCommentTagsin interfaceUnit
-
setCommentTag
- Specified by:
setCommentTagin interfaceUnit
-
getCommentTag
- Specified by:
getCommentTagin interfaceUnit
-
getDisplayName
- Specified by:
getDisplayNamein interfaceUnit
-