Class Callout

  • All Implemented Interfaces:
    Depictable, Unit

    public class Callout
    extends java.lang.Object
    implements Unit, Depictable
    Stores a comment. Displayed as box in the layout.
    • Field Detail

      • diagram

        public final Diagram diagram
      • owner

        public final Unit owner
      • LINE_SPACING

        public static double LINE_SPACING
    • Method Detail

      • getComment

        public java.lang.String getComment()
        Specified by:
        getComment in interface Unit
      • markForDeletion

        public void markForDeletion()
        Specified by:
        markForDeletion in interface Unit
      • setComment

        public void setComment​(java.lang.String comment)
        Specified by:
        setComment in interface Unit
      • getCommentTextLines

        public java.lang.String[] getCommentTextLines()
      • setPosition

        public void setPosition​(Location newPosition)
      • translateToPointWithArrowToPosition

        public void translateToPointWithArrowToPosition()
      • moveTo

        public void moveTo​(int x,
                           int y)
        Specified by:
        moveTo in interface Depictable
      • translate

        public void translate​(int x,
                              int y)
        Specified by:
        translate in interface Depictable
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • rememberPositionRelativeToMovable

        public void rememberPositionRelativeToMovable()
      • restorePositionRelativeToMovable

        public void restorePositionRelativeToMovable()
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface Unit
      • getSymbolicName

        public java.lang.String getSymbolicName()
        Specified by:
        getSymbolicName in interface Unit
      • setIsTip

        public void setIsTip​(boolean isTip)
      • isTip

        public boolean isTip()
      • getGlobalCost

        public double getGlobalCost​(java.lang.String otherName)
        Specified by:
        getGlobalCost in interface Depictable