Class TextBox

    • Constructor Detail

      • TextBox

        public TextBox​(String parName,
                       Group parentGroup,
                       int posX,
                       int posY,
                       int posX2,
                       int posY2)
        Parameters:
        parName - parName
        parentGroup - parentGroup
        posX - posX
        posY - posY
        posX2 - posX2
        posY2 - posY2
    • Method Detail

      • showChangeTextDialog

        public void showChangeTextDialog()
      • drawMultiLineText

        protected void drawMultiLineText​(Graphics g,
                                         float drawPosX,
                                         float drawPosY,
                                         float formatWidth)
        Parameters:
        g - g
        drawPosX - drawPosX
        drawPosY - drawPosY
        formatWidth - formatWidth
      • setColor

        public void setColor​(Color color)
        Description copied from class: VisibleObject
        Insert the method's description here. Creation date: (19.12.2000 20:10:52)
        Overrides:
        setColor in class VisibleObject
        Parameters:
        color - java.awt.Color
      • setFont

        public void setFont​(Font parFont)
        Description copied from class: VisibleObject
        Insert the method's description here. Creation date: (19.12.2000 20:10:52)
        Overrides:
        setFont in class VisibleObject
        Parameters:
        parFont - java.awt.Font
      • accept

        public void accept​(Visitor visitor)
        Specified by:
        accept in interface Visitable
        Parameters:
        visitor - com.cosylab.vdct.graphics.objects.Visitor
      • checkMove

        public boolean checkMove​(int dx,
                                 int dy)
        Description copied from interface: Movable
        Insert the method's description here. Creation date: (27.12.2000 13:08:09)
        Specified by:
        checkMove in interface Movable
        Parameters:
        dx - int
        dy - int
        Returns:
        boolean
      • copyToGroup

        public Flexible copyToGroup​(Object dsId,
                                    String group)
        Description copied from interface: Flexible
        Returns the copied instance or null if the object cannot be copied. Creation date: (4.2.2001 21:59:44)
        Specified by:
        copyToGroup in interface Flexible
        Parameters:
        dsId - dsId
        group - java.lang.String
        Returns:
        something
      • destroy

        public void destroy()
        Description copied from class: VisibleObject
        Insert the method's description here. Creation date: (30.1.2001 11:58:53)
        Overrides:
        destroy in class VisibleObject
      • draw

        protected void draw​(Graphics g,
                            boolean hilited)
        Description copied from class: VisibleObject
        Insert the method's description here. Creation date: (19.12.2000 21:30:46)
        Specified by:
        draw in class VisibleObject
        Parameters:
        g - java.awt.Graphics
        hilited - boolean
      • drawDashedBorder

        public void drawDashedBorder​(Graphics g,
                                     boolean hilited)
        Parameters:
        g - g
        hilited - hilited
      • getCurrentBorder

        public static boolean getCurrentBorder()
        Returns:
        something
      • getEndVertex

        public Vertex getEndVertex()
        Returns:
        something
      • getFlexibleName

        public String getFlexibleName()
        Description copied from interface: Flexible
        Insert the method's description here. Creation date: (3.5.2001 10:15:48)
        Specified by:
        getFlexibleName in interface Flexible
        Returns:
        java.lang.String
      • getHashID

        public String getHashID()
        Description copied from class: VisibleObject
        Insert the method's description here. Creation date: (3.5.2001 16:40:00)
        Specified by:
        getHashID in class VisibleObject
        Returns:
        java.lang.String
      • getItems

        public Vector getItems()
        Description copied from interface: Popupable
        Insert the method's description here. Creation date: (2.2.2001 20:26:25)
        Specified by:
        getItems in interface Popupable
        Returns:
        java.util.Vector
      • getStartVertex

        public Vertex getStartVertex()
        Returns:
        something
      • move

        public boolean move​(int dx,
                            int dy)
        Description copied from interface: Movable
        Insert the method's description here. Creation date: (25.12.2000 14:13:14)
        Specified by:
        move in interface Movable
        Parameters:
        dx - int
        dy - int
        Returns:
        boolean
      • moveToGroup

        public boolean moveToGroup​(Object dsId,
                                   String group)
        Description copied from interface: Flexible
        Insert the method's description here. Creation date: (4.2.2001 22:00:01)
        Specified by:
        moveToGroup in interface Flexible
        Parameters:
        dsId - dsId
        group - java.lang.String
        Returns:
        something
      • rename

        public boolean rename​(Object dsId,
                              String newName)
        Description copied from interface: Flexible
        Insert the method's description here. Creation date: (2.5.2001 23:23:17)
        Specified by:
        rename in interface Flexible
        Parameters:
        dsId - dsId
        newName - java.lang.String
        Returns:
        something
      • revalidatePosition

        public void revalidatePosition()
        Description copied from class: VisibleObject
        Insert the method's description here. Creation date: (21.12.2000 21:21:59)
        Specified by:
        revalidatePosition in class VisibleObject
      • setBorder

        public void setBorder​(boolean parBorder)
        Parameters:
        parBorder - parBorder
      • validate

        protected void validate()
        Description copied from class: VisibleObject
        Insert the method's description here. Creation date: (19.12.2000 21:31:15)
        Specified by:
        validate in class VisibleObject
      • hiliteComponentsCheck

        public VisibleObject hiliteComponentsCheck​(int x,
                                                   int y)
        Returned value inicates change Creation date: (21.12.2000 22:21:12)
        Parameters:
        x - int
        y - int
        Returns:
        com.cosylab.visible.objects.VisibleObject
      • intersects

        public VisibleObject intersects​(int px,
                                        int py)
        Default impmlementation for square (must be rescaled) Creation date: (19.12.2000 20:20:20)
        Overrides:
        intersects in class VisibleObject
        Parameters:
        px - int
        py - int
        Returns:
        com.cosylab.visible.objects.VisibleObject
      • isBorder

        public boolean isBorder()
        Returns the border.
        Returns:
        boolean
      • getX

        public int getX()
        Description copied from class: VisibleObject
        Insert the method's description here. Creation date: (19.12.2000 20:10:52)
        Overrides:
        getX in class VisibleObject
        Returns:
        int
      • getY

        public int getY()
        Description copied from class: VisibleObject
        Insert the method's description here. Creation date: (19.12.2000 20:10:52)
        Overrides:
        getY in class VisibleObject
        Returns:
        int