Class ViewState

  • All Implemented Interfaces:
    DsEventListener

    public class ViewState
    extends Object
    implements DsEventListener
    Insert the type's description here. Creation date: (13/7/99 10:26:13)
    Author:
    Matej Sekoranja
    • Field Detail

      • instances

        protected static HashMap instances
      • x0

        protected int x0
      • y0

        protected int y0
      • drx

        protected double drx
      • dry

        protected double dry
      • rx

        protected int rx
      • ry

        protected int ry
      • scale

        protected double scale
      • viewWidth

        protected int viewWidth
      • viewHeight

        protected int viewHeight
      • flat

        protected boolean flat
      • selectedObjects

        protected Vector selectedObjects
      • blinkingObjects

        protected Vector blinkingObjects
      • blinkState

        protected boolean blinkState
    • Constructor Detail

      • ViewState

        public ViewState()
        Insert the method's description here. Creation date: (21.12.2000 21:00:31)
      • ViewState

        public ViewState​(ViewState original)
        Insert the method's description here. Creation date: (3.5.2001 13:31:07)
        Parameters:
        original - com.cosylab.vdct.graphics.ViewState
    • Method Detail

      • deblinkAll

        public void deblinkAll()
        Insert the method's description here. Creation date: (3.2.2001 15:54:30)
      • deblinkObject

        public void deblinkObject​(VisibleObject object)
        Insert the method's description here. Creation date: (3.2.2001 15:54:02)
        Parameters:
        object - com.cosylab.vdct.graphics.objects.VisibleObject
      • deselectAll

        public boolean deselectAll()
        Insert the method's description here. Creation date: (27.12.2000 11:54:05)
        Returns:
        boolean
      • deselectObject

        public void deselectObject​(VisibleObject object)
        Insert the method's description here. Creation date: (27.12.2000 11:54:42)
        Parameters:
        object - object
      • getBlinkingObjects

        public Vector getBlinkingObjects()
        Insert the method's description here. Creation date: (3.2.2001 15:52:19)
        Returns:
        java.util.Vector
      • getGridSize

        public int getGridSize()
        Insert the method's description here. Creation date: (27.4.2001 18:37:09)
        Returns:
        int
      • getHeight

        public int getHeight()
        Insert the method's description here. Creation date: (11.12.2000 17:56:18)
        Returns:
        int
      • getHilitedObject

        public VisibleObject getHilitedObject()
        Insert the method's description here. Creation date: (21.12.2000 22:25:54)
        Returns:
        com.cosylab.vdct.graphics.objects.VisibleObject
      • getHilitedObjects

        public LinkedHashSet getHilitedObjects()
        Returns:
        something
      • isHilitedObject

        public boolean isHilitedObject​(VisibleObject object)
        Parameters:
        object - object
        Returns:
        something
      • getInstance

        public static ViewState getInstance​(Object dsId)
        Parameters:
        dsId - dsId
        Returns:
        something
      • getRx

        public int getRx()
        Insert the method's description here. Creation date: (11.12.2000 17:56:18)
        Returns:
        int
      • getRy

        public int getRy()
        Insert the method's description here. Creation date: (11.12.2000 17:56:18)
        Returns:
        int
      • getScale

        public double getScale()
        Insert the method's description here. Creation date: (11.12.2000 17:56:18)
        Returns:
        double
      • getSelectedObjects

        public Vector getSelectedObjects()
        Insert the method's description here. Creation date: (27.12.2000 12:00:31)
        Returns:
        java.util.Vector
      • getViewHeight

        public int getViewHeight()
        Insert the method's description here. Creation date: (27.12.2000 14:27:43)
        Returns:
        int
      • getViewWidth

        public int getViewWidth()
        Insert the method's description here. Creation date: (27.12.2000 14:27:43)
        Returns:
        int
      • getWidth

        public int getWidth()
        Insert the method's description here. Creation date: (11.12.2000 17:56:18)
        Returns:
        int
      • getX0

        public int getX0()
        Insert the method's description here. Creation date: (11.12.2000 17:56:18)
        Returns:
        int
      • getY0

        public int getY0()
        Insert the method's description here. Creation date: (11.12.2000 17:56:18)
        Returns:
        int
      • isBlinking

        public boolean isBlinking​(VisibleObject object)
        Insert the method's description here. Creation date: (3.2.2001 15:56:04)
        Parameters:
        object - com.cosylab.vdct.graphics.objects.VisibleObject
        Returns:
        boolean
      • isBlinkState

        public boolean isBlinkState()
        Insert the method's description here. Creation date: (3.2.2001 16:12:11)
        Returns:
        boolean
      • isFlat

        public boolean isFlat()
        Insert the method's description here. Creation date: (1.5.2001 17:53:25)
        Returns:
        boolean
      • isPicked

        public boolean isPicked​(VisibleObject object)
        Insert the method's description here. Creation date: (26.12.2000 21:35:20)
        Parameters:
        object - com.cosylab.vdct.graphics.objects.VisibleObject
        Returns:
        boolean
      • isSelected

        public boolean isSelected​(Object object)
        Insert the method's description here. Creation date: (26.12.2000 21:35:20)
        Parameters:
        object - java.lang.Object
        Returns:
        boolean
      • moveOrigin

        public boolean moveOrigin​(int dx,
                                  int dy)
        Insert the method's description here. Creation date: (27.12.2000 14:17:52)
        Parameters:
        dx - int
        dy - int
        Returns:
        boolean
      • reset

        public void reset()
        Insert the method's description here. Creation date: (28.1.2001 18:38:39)
      • setAsBlinking

        public void setAsBlinking​(VisibleObject object)
        Insert the method's description here. Creation date: (3.2.2001 15:52:58)
        Parameters:
        object - com.cosylab.vdct.graphics.objects.VisibleObject
      • isZoomOnHilited

        public boolean isZoomOnHilited()
        Returns:
        something
      • setAsHilited

        public boolean setAsHilited​(VisibleObject object)
        Parameters:
        object - object
        Returns:
        something
      • setAsHilited

        public boolean setAsHilited​(VisibleObject object,
                                    boolean zoomOnHilited)
        Insert the method's description here. Creation date: (21.12.2000 22:24:23)
        Parameters:
        object - com.cosylab.vdct.graphics.objects.VisibleObject
        zoomOnHilited - sets the option whether the hilited object should be zoomed in
        Returns:
        boolean
      • setAsSelected

        public boolean setAsSelected​(VisibleObject object)
        Insert the method's description here. Creation date: (21.12.2000 22:24:23)
        Parameters:
        object - com.cosylab.vdct.graphics.objects.VisibleObject
        Returns:
        boolean
      • setBlinkState

        public void setBlinkState​(boolean newBlinkState)
        Insert the method's description here. Creation date: (3.2.2001 16:12:11)
        Parameters:
        newBlinkState - boolean
      • setFlat

        public void setFlat​(boolean newFlat)
        Insert the method's description here. Creation date: (1.5.2001 17:53:25)
        Parameters:
        newFlat - boolean
      • setInstance

        public static void setInstance​(Object dsId,
                                       ViewState newInstance)
        Insert the method's description here. Creation date: (21.12.2000 21:02:40)
        Parameters:
        dsId - dsId
        newInstance - com.cosylab.vdct.graphics.ViewState
      • setRx

        public void setRx​(int newRx)
        Insert the method's description here. Creation date: (11.12.2000 17:56:18)
        Parameters:
        newRx - int
      • setRy

        public void setRy​(int newRy)
        Insert the method's description here. Creation date: (11.12.2000 17:56:18)
        Parameters:
        newRy - int
      • setScale

        public void setScale​(double newScale)
        Insert the method's description here. Creation date: (11.12.2000 17:56:18)
        Parameters:
        newScale - double
      • setViewHeight

        public void setViewHeight​(int newViewHeight)
        Insert the method's description here. Creation date: (27.12.2000 14:27:43)
        Parameters:
        newViewHeight - int
      • setViewWidth

        public void setViewWidth​(int newViewWidth)
        Insert the method's description here. Creation date: (27.12.2000 14:27:43)
        Parameters:
        newViewWidth - int
      • setX0

        public void setX0​(int newX0)
        Insert the method's description here. Creation date: (11.12.2000 17:56:18)
        Parameters:
        newX0 - int
      • setY0

        public void setY0​(int newY0)
        Insert the method's description here. Creation date: (11.12.2000 17:56:18)
        Parameters:
        newY0 - int
      • getDrx

        public double getDrx()
        Returns the drx.
        Returns:
        double
      • getDry

        public double getDry()
        Returns the dry.
        Returns:
        double
      • setDrx

        public void setDrx​(double drx)
        Sets the drx.
        Parameters:
        drx - The drx to set
      • setDry

        public void setDry​(double dry)
        Sets the dry.
        Parameters:
        dry - The dry to set
      • getDotSize

        public int getDotSize()
        Returns:
        Returns the dotSize.
      • getDsId

        public Object getDsId()
        Returns:
        something
      • setDsId

        public void setDsId​(Object dsId)
        Parameters:
        dsId - dsId
      • registerDsListener

        public static void registerDsListener()