com.cosylab.vdct.graphics
Class ViewState

java.lang.Object
  extended by com.cosylab.vdct.graphics.ViewState
All Implemented Interfaces:
DsEventListener

public class ViewState
extends java.lang.Object
implements DsEventListener

Insert the type's description here. Creation date: (13/7/99 10:26:13)

Author:
Matej Sekoranja

Field Summary
protected  java.util.Vector blinkingObjects
           
protected  boolean blinkState
           
protected  double drx
           
protected  double dry
           
protected  java.lang.Object dsId
           
protected  boolean flat
           
protected  VisibleObject hilitedObject
           
protected  java.util.LinkedHashSet hilitedObjects
           
protected static java.util.HashMap instances
           
protected  int rx
           
protected  int ry
           
protected  double scale
           
protected  java.util.Vector selectedObjects
           
protected  int viewHeight
           
protected  int viewWidth
           
protected  int x0
           
protected  int y0
           
 
Constructor Summary
ViewState()
          Insert the method's description here.
ViewState(ViewState original)
          Insert the method's description here.
 
Method Summary
 void deblinkAll()
          Insert the method's description here.
 void deblinkObject(VisibleObject object)
          Insert the method's description here.
 boolean deselectAll()
          Insert the method's description here.
 void deselectObject(VisibleObject object)
          Insert the method's description here.
 java.util.Vector getBlinkingObjects()
          Insert the method's description here.
 int getDotSize()
           
 double getDrx()
          Returns the drx.
 double getDry()
          Returns the dry.
 java.lang.Object getDsId()
           
 int getGridSize()
          Insert the method's description here.
 int getHeight()
          Insert the method's description here.
 VisibleObject getHilitedObject()
          Insert the method's description here.
 java.util.LinkedHashSet getHilitedObjects()
           
static ViewState getInstance(java.lang.Object dsId)
           
 int getRx()
          Insert the method's description here.
 int getRy()
          Insert the method's description here.
 double getScale()
          Insert the method's description here.
 java.util.Vector getSelectedObjects()
          Insert the method's description here.
 int getViewHeight()
          Insert the method's description here.
 int getViewWidth()
          Insert the method's description here.
 int getWidth()
          Insert the method's description here.
 int getX0()
          Insert the method's description here.
 int getY0()
          Insert the method's description here.
 boolean isBlinking(VisibleObject object)
          Insert the method's description here.
 boolean isBlinkState()
          Insert the method's description here.
 boolean isFlat()
          Insert the method's description here.
 boolean isHilitedObject(VisibleObject object)
           
 boolean isPicked(VisibleObject object)
          Insert the method's description here.
 boolean isSelected(java.lang.Object object)
          Insert the method's description here.
 boolean isZoomOnHilited()
           
 boolean moveOrigin(int dx, int dy)
          Insert the method's description here.
 void onDsAdded(java.lang.Object id)
           
 void onDsFocused(java.lang.Object id)
           
 void onDsRemoved(java.lang.Object id)
           
static void registerDsListener()
           
 void reset()
          Insert the method's description here.
 void setAsBlinking(VisibleObject object)
          Insert the method's description here.
 boolean setAsHilited(VisibleObject object)
           
 boolean setAsHilited(VisibleObject object, boolean zoomOnHilited)
          Insert the method's description here.
 boolean setAsSelected(VisibleObject object)
          Insert the method's description here.
 void setBlinkState(boolean newBlinkState)
          Insert the method's description here.
 void setDrx(double drx)
          Sets the drx.
 void setDry(double dry)
          Sets the dry.
 void setDsId(java.lang.Object dsId)
           
 void setFlat(boolean newFlat)
          Insert the method's description here.
static void setInstance(java.lang.Object dsId, ViewState newInstance)
          Insert the method's description here.
 void setRx(int newRx)
          Insert the method's description here.
 void setRy(int newRy)
          Insert the method's description here.
 void setScale(double newScale)
          Insert the method's description here.
 void setViewHeight(int newViewHeight)
          Insert the method's description here.
 void setViewWidth(int newViewWidth)
          Insert the method's description here.
 void setX0(int newX0)
          Insert the method's description here.
 void setY0(int newY0)
          Insert the method's description here.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instances

protected static java.util.HashMap instances

dsId

protected java.lang.Object dsId

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

hilitedObject

protected VisibleObject hilitedObject

hilitedObjects

protected java.util.LinkedHashSet hilitedObjects

selectedObjects

protected java.util.Vector selectedObjects

blinkingObjects

protected java.util.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)


getBlinkingObjects

public java.util.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 java.util.LinkedHashSet getHilitedObjects()

isHilitedObject

public boolean isHilitedObject(VisibleObject object)

getInstance

public static ViewState getInstance(java.lang.Object dsId)

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 java.util.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(java.lang.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()

setAsHilited

public boolean setAsHilited(VisibleObject object)

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(java.lang.Object dsId,
                               ViewState newInstance)
Insert the method's description here. Creation date: (21.12.2000 21:02:40)

Parameters:
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 java.lang.Object getDsId()

setDsId

public void setDsId(java.lang.Object dsId)

registerDsListener

public static void registerDsListener()

onDsAdded

public void onDsAdded(java.lang.Object id)
Specified by:
onDsAdded in interface DsEventListener

onDsRemoved

public void onDsRemoved(java.lang.Object id)
Specified by:
onDsRemoved in interface DsEventListener

onDsFocused

public void onDsFocused(java.lang.Object id)
Specified by:
onDsFocused in interface DsEventListener