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.Color
getColor()
getCommentTag
(String key) double
getDependencyCost
(Depictable other) getDisplayName
(Diagram diagram) double
getGlobalCost
(String otherName) getName()
int
getNameWidth
(boolean fullQualified) boolean
void
void
void
is
(UnitProperty unitProperty) boolean
boolean
void
static double
middleOf
(double left, double right) void
moveTo
(double x, double y) ref()
void
refresh()
void
setAttributeVisible
(Attribute attr, boolean visible) boolean
setColor
(javafx.scene.paint.Color color) void
setComment
(String comment) void
setCommentTag
(String key, String value) void
setCommentTags
(Map<String, String> tags) void
setGroupFree
(boolean groupFree) void
setLocation
(double x, double y) void
setSize
(int width, int height) void
toString()
void
translate
(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:
getParentEntity
in interfaceUnit
-
setLocation
public void setLocation(double x, double y) -
moveTo
public void moveTo(double x, double y) - Specified by:
moveTo
in interfaceDepictable
-
translate
public void translate(double dx, double dy) - Specified by:
translate
in interfaceDepictable
-
setSize
public void setSize(int width, int height) -
getPosition
- Specified by:
getPosition
in 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:
refresh
in interfaceDepictable
-
isMarkedForDeletion
public boolean isMarkedForDeletion()- Specified by:
isMarkedForDeletion
in interfaceDepictable
- Specified by:
isMarkedForDeletion
in interfaceUnit
-
toString
-
getNameWidth
public int getNameWidth(boolean fullQualified) -
hasHiddenAttributes
public boolean hasHiddenAttributes() -
getName
-
getSymbolicName
- Specified by:
getSymbolicName
in interfaceUnit
-
markForDeletion
public void markForDeletion()- Specified by:
markForDeletion
in interfaceUnit
-
setComment
- Specified by:
setComment
in interfaceUnit
-
getComment
- Specified by:
getComment
in 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:
getGlobalCost
in interfaceDepictable
-
getDependencyCost
- Specified by:
getDependencyCost
in interfaceDepictable
-
is
-
middleOf
public static double middleOf(double left, double right) -
ref
-
getCommentTags
- Specified by:
getCommentTags
in interfaceUnit
-
setCommentTags
- Specified by:
setCommentTags
in interfaceUnit
-
setCommentTag
- Specified by:
setCommentTag
in interfaceUnit
-
getCommentTag
- Specified by:
getCommentTag
in interfaceUnit
-
getDisplayName
- Specified by:
getDisplayName
in interfaceUnit
-