Package com.wisecoders.dbs.diagram.model
Class Callout
java.lang.Object
com.wisecoders.dbs.diagram.model.Callout
- All Implemented Interfaces:
Depictable
,Unit
Stores a comment. Displayed as box in the layout.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCommentTag
(String key) String[]
double
getDependencyCost
(Depictable other) getDisplayName
(Diagram diagram) double
getGlobalCost
(String otherName) getName()
is
(UnitProperty unitProperty) boolean
boolean
isTip()
void
void
moveTo
(double x, double y) ref()
void
refresh()
void
void
void
setComment
(String comment) void
setCommentTag
(String key, String value) void
setCommentTags
(Map<String, String> tags) void
setIsTip
(boolean isTip) void
setPointer
(CalloutPointer type) void
setPosition
(Point newPosition) toString()
void
translate
(double x, double y)
-
Field Details
-
diagram
-
anchor
-
owner
-
LINE_SPACING
public static double LINE_SPACING
-
-
Constructor Details
-
Callout
-
Callout
-
-
Method Details
-
getComment
- Specified by:
getComment
in interfaceUnit
-
setPointer
-
getPointer
-
refresh
public void refresh()- Specified by:
refresh
in interfaceDepictable
-
markForDeletion
public void markForDeletion()- Specified by:
markForDeletion
in interfaceUnit
-
isMarkedForDeletion
public boolean isMarkedForDeletion()- Specified by:
isMarkedForDeletion
in interfaceDepictable
- Specified by:
isMarkedForDeletion
in interfaceUnit
-
getEntity
-
getParentEntity
- Specified by:
getParentEntity
in interfaceUnit
-
setComment
- Specified by:
setComment
in interfaceUnit
-
getCommentTextLines
-
getPosition
- Specified by:
getPosition
in interfaceDepictable
-
setPosition
-
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
-
toString
-
rememberPositionRelativeToMovable
public void rememberPositionRelativeToMovable() -
restorePositionRelativeToMovable
public void restorePositionRelativeToMovable() -
getName
-
getSymbolicName
- Specified by:
getSymbolicName
in interfaceUnit
-
setIsTip
public void setIsTip(boolean isTip) -
isTip
public boolean isTip() -
getGlobalCost
- Specified by:
getGlobalCost
in interfaceDepictable
-
getDependencyCost
- Specified by:
getDependencyCost
in interfaceDepictable
-
is
-
ref
-
getCommentTags
- Specified by:
getCommentTags
in interfaceUnit
-
getCommentTag
- Specified by:
getCommentTag
in interfaceUnit
-
setCommentTags
- Specified by:
setCommentTags
in interfaceUnit
-
setCommentTag
- Specified by:
setCommentTag
in interfaceUnit
-
getDisplayName
- Specified by:
getDisplayName
in interfaceUnit
-