Class Vertex

    • Constructor Detail

      • Vertex

        public Vertex​(VisibleObject owner,
                      int parX,
                      int parY)
        Parameters:
        owner - owner
        parX - parX
        parY - parY
    • Method Detail

      • 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
      • 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
      • 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
      • 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
      • 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
      • setX

        public void setX​(int parX)
        Description copied from class: VisibleObject
        Insert the method's description here. Creation date: (19.12.2000 20:10:52)
        Overrides:
        setX in class VisibleObject
        Parameters:
        parX - int
      • setY

        public void setY​(int parY)
        Description copied from class: VisibleObject
        Insert the method's description here. Creation date: (19.12.2000 20:10:52)
        Overrides:
        setY in class VisibleObject
        Parameters:
        parY - int
      • 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
      • isHilited

        public boolean isHilited()
        Returns the hilited.
        Returns:
        boolean
      • 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
      • intersects

        public VisibleObject intersects​(int p1x,
                                        int p1y,
                                        int p2x,
                                        int p2y)
        Default impmlementation for square (must be rescaled) p1 is upper-left point Creation date: (19.12.2000 20:20:20)
        Overrides:
        intersects in class VisibleObject
        Parameters:
        p1x - int
        p1y - int
        p2x - int
        p2y - int
        Returns:
        com.cosylab.visible.objects.VisibleObject