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[]doublegetDependencyCost(Depictable other) getDisplayName(Diagram diagram) doublegetGlobalCost(String otherName) getName()is(UnitProperty unitProperty) booleanbooleanisTip()voidvoidmoveTo(double x, double y) ref()voidrefresh()voidvoidvoidsetComment(String comment) voidsetCommentTag(String key, String value) voidsetCommentTags(Map<String, String> tags) voidsetIsTip(boolean isTip) voidsetPointer(CalloutPointer type) voidsetPosition(Point newPosition) toString()voidtranslate(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:
getCommentin interfaceUnit
-
setPointer
-
getPointer
-
refresh
public void refresh()- Specified by:
refreshin interfaceDepictable
-
markForDeletion
public void markForDeletion()- Specified by:
markForDeletionin interfaceUnit
-
isMarkedForDeletion
public boolean isMarkedForDeletion()- Specified by:
isMarkedForDeletionin interfaceDepictable- Specified by:
isMarkedForDeletionin interfaceUnit
-
getEntity
-
getParentEntity
- Specified by:
getParentEntityin interfaceUnit
-
setComment
- Specified by:
setCommentin interfaceUnit
-
getCommentTextLines
-
getPosition
- Specified by:
getPositionin interfaceDepictable
-
setPosition
-
moveTo
public void moveTo(double x, double y) - Specified by:
moveToin interfaceDepictable
-
translate
public void translate(double x, double y) - Specified by:
translatein interfaceDepictable
-
toString
-
rememberPositionRelativeToMovable
public void rememberPositionRelativeToMovable() -
restorePositionRelativeToMovable
public void restorePositionRelativeToMovable() -
getName
-
getSymbolicName
- Specified by:
getSymbolicNamein interfaceUnit
-
setIsTip
public void setIsTip(boolean isTip) -
isTip
public boolean isTip() -
getGlobalCost
- Specified by:
getGlobalCostin interfaceDepictable
-
getDependencyCost
- Specified by:
getDependencyCostin interfaceDepictable
-
is
-
ref
-
getCommentTags
- Specified by:
getCommentTagsin interfaceUnit
-
getCommentTag
- Specified by:
getCommentTagin interfaceUnit
-
setCommentTags
- Specified by:
setCommentTagsin interfaceUnit
-
setCommentTag
- Specified by:
setCommentTagin interfaceUnit
-
getDisplayName
- Specified by:
getDisplayNamein interfaceUnit
-