Package com.cosylab.vdct.graphics
Class ViewState
- java.lang.Object
-
- com.cosylab.vdct.graphics.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 Summary
Fields Modifier and Type Field Description protected Vector
blinkingObjects
protected boolean
blinkState
protected double
drx
protected double
dry
protected Object
dsId
protected boolean
flat
protected VisibleObject
hilitedObject
protected LinkedHashSet
hilitedObjects
protected static HashMap
instances
protected int
rx
protected int
ry
protected double
scale
protected Vector
selectedObjects
protected int
viewHeight
protected int
viewWidth
protected int
x0
protected int
y0
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.Vector
getBlinkingObjects()
Insert the method's description here.int
getDotSize()
double
getDrx()
Returns the drx.double
getDry()
Returns the dry.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.LinkedHashSet
getHilitedObjects()
static ViewState
getInstance(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.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(Object object)
Insert the method's description here.boolean
isZoomOnHilited()
boolean
moveOrigin(int dx, int dy)
Insert the method's description here.void
onDsAdded(Object id)
void
onDsFocused(Object id)
void
onDsRemoved(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(Object dsId)
void
setFlat(boolean newFlat)
Insert the method's description here.static void
setInstance(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.
-
-
-
Field Detail
-
instances
protected static HashMap instances
-
dsId
protected 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 LinkedHashSet hilitedObjects
-
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
- intdy
- 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.VisibleObjectzoomOnHilited
- 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
- dsIdnewInstance
- 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()
-
onDsAdded
public void onDsAdded(Object id)
- Specified by:
onDsAdded
in interfaceDsEventListener
- Parameters:
id
- id
-
onDsRemoved
public void onDsRemoved(Object id)
- Specified by:
onDsRemoved
in interfaceDsEventListener
- Parameters:
id
- id
-
onDsFocused
public void onDsFocused(Object id)
- Specified by:
onDsFocused
in interfaceDsEventListener
- Parameters:
id
- id
-
-