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 VectorblinkingObjectsprotected booleanblinkStateprotected doubledrxprotected doubledryprotected ObjectdsIdprotected booleanflatprotected VisibleObjecthilitedObjectprotected LinkedHashSethilitedObjectsprotected static HashMapinstancesprotected intrxprotected intryprotected doublescaleprotected VectorselectedObjectsprotected intviewHeightprotected intviewWidthprotected intx0protected inty0
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeblinkAll()Insert the method's description here.voiddeblinkObject(VisibleObject object)Insert the method's description here.booleandeselectAll()Insert the method's description here.voiddeselectObject(VisibleObject object)Insert the method's description here.VectorgetBlinkingObjects()Insert the method's description here.intgetDotSize()doublegetDrx()Returns the drx.doublegetDry()Returns the dry.ObjectgetDsId()intgetGridSize()Insert the method's description here.intgetHeight()Insert the method's description here.VisibleObjectgetHilitedObject()Insert the method's description here.LinkedHashSetgetHilitedObjects()static ViewStategetInstance(Object dsId)intgetRx()Insert the method's description here.intgetRy()Insert the method's description here.doublegetScale()Insert the method's description here.VectorgetSelectedObjects()Insert the method's description here.intgetViewHeight()Insert the method's description here.intgetViewWidth()Insert the method's description here.intgetWidth()Insert the method's description here.intgetX0()Insert the method's description here.intgetY0()Insert the method's description here.booleanisBlinking(VisibleObject object)Insert the method's description here.booleanisBlinkState()Insert the method's description here.booleanisFlat()Insert the method's description here.booleanisHilitedObject(VisibleObject object)booleanisPicked(VisibleObject object)Insert the method's description here.booleanisSelected(Object object)Insert the method's description here.booleanisZoomOnHilited()booleanmoveOrigin(int dx, int dy)Insert the method's description here.voidonDsAdded(Object id)voidonDsFocused(Object id)voidonDsRemoved(Object id)static voidregisterDsListener()voidreset()Insert the method's description here.voidsetAsBlinking(VisibleObject object)Insert the method's description here.booleansetAsHilited(VisibleObject object)booleansetAsHilited(VisibleObject object, boolean zoomOnHilited)Insert the method's description here.booleansetAsSelected(VisibleObject object)Insert the method's description here.voidsetBlinkState(boolean newBlinkState)Insert the method's description here.voidsetDrx(double drx)Sets the drx.voidsetDry(double dry)Sets the dry.voidsetDsId(Object dsId)voidsetFlat(boolean newFlat)Insert the method's description here.static voidsetInstance(Object dsId, ViewState newInstance)Insert the method's description here.voidsetRx(int newRx)Insert the method's description here.voidsetRy(int newRy)Insert the method's description here.voidsetScale(double newScale)Insert the method's description here.voidsetViewHeight(int newViewHeight)Insert the method's description here.voidsetViewWidth(int newViewWidth)Insert the method's description here.voidsetX0(int newX0)Insert the method's description here.voidsetY0(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:
onDsAddedin interfaceDsEventListener- Parameters:
id- id
-
onDsRemoved
public void onDsRemoved(Object id)
- Specified by:
onDsRemovedin interfaceDsEventListener- Parameters:
id- id
-
onDsFocused
public void onDsFocused(Object id)
- Specified by:
onDsFocusedin interfaceDsEventListener- Parameters:
id- id
-
-