|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cosylab.vdct.graphics.ViewState
public class ViewState
Insert the type's description here. Creation date: (13/7/99 10:26:13)
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 |
---|
protected static java.util.HashMap instances
protected java.lang.Object dsId
protected int x0
protected int y0
protected double drx
protected double dry
protected int rx
protected int ry
protected double scale
protected int viewWidth
protected int viewHeight
protected boolean flat
protected VisibleObject hilitedObject
protected java.util.LinkedHashSet hilitedObjects
protected java.util.Vector selectedObjects
protected java.util.Vector blinkingObjects
protected boolean blinkState
Constructor Detail |
---|
public ViewState()
public ViewState(ViewState original)
original
- com.cosylab.vdct.graphics.ViewStateMethod Detail |
---|
public void deblinkAll()
public void deblinkObject(VisibleObject object)
object
- com.cosylab.vdct.graphics.objects.VisibleObjectpublic boolean deselectAll()
public void deselectObject(VisibleObject object)
public java.util.Vector getBlinkingObjects()
public int getGridSize()
public int getHeight()
public VisibleObject getHilitedObject()
public java.util.LinkedHashSet getHilitedObjects()
public boolean isHilitedObject(VisibleObject object)
public static ViewState getInstance(java.lang.Object dsId)
public int getRx()
public int getRy()
public double getScale()
public java.util.Vector getSelectedObjects()
public int getViewHeight()
public int getViewWidth()
public int getWidth()
public int getX0()
public int getY0()
public boolean isBlinking(VisibleObject object)
object
- com.cosylab.vdct.graphics.objects.VisibleObject
public boolean isBlinkState()
public boolean isFlat()
public boolean isPicked(VisibleObject object)
object
- com.cosylab.vdct.graphics.objects.VisibleObject
public boolean isSelected(java.lang.Object object)
object
- java.lang.Object
public boolean moveOrigin(int dx, int dy)
dx
- intdy
- int
public void reset()
public void setAsBlinking(VisibleObject object)
object
- com.cosylab.vdct.graphics.objects.VisibleObjectpublic boolean isZoomOnHilited()
public boolean setAsHilited(VisibleObject object)
public boolean setAsHilited(VisibleObject object, boolean zoomOnHilited)
object
- com.cosylab.vdct.graphics.objects.VisibleObjectzoomOnHilited
- sets the option whether the hilited object should be zoomed in
public boolean setAsSelected(VisibleObject object)
object
- com.cosylab.vdct.graphics.objects.VisibleObject
public void setBlinkState(boolean newBlinkState)
newBlinkState
- booleanpublic void setFlat(boolean newFlat)
newFlat
- booleanpublic static void setInstance(java.lang.Object dsId, ViewState newInstance)
newInstance
- com.cosylab.vdct.graphics.ViewStatepublic void setRx(int newRx)
newRx
- intpublic void setRy(int newRy)
newRy
- intpublic void setScale(double newScale)
newScale
- doublepublic void setViewHeight(int newViewHeight)
newViewHeight
- intpublic void setViewWidth(int newViewWidth)
newViewWidth
- intpublic void setX0(int newX0)
newX0
- intpublic void setY0(int newY0)
newY0
- intpublic double getDrx()
public double getDry()
public void setDrx(double drx)
drx
- The drx to setpublic void setDry(double dry)
dry
- The dry to setpublic int getDotSize()
public java.lang.Object getDsId()
public void setDsId(java.lang.Object dsId)
public static void registerDsListener()
public void onDsAdded(java.lang.Object id)
onDsAdded
in interface DsEventListener
public void onDsRemoved(java.lang.Object id)
onDsRemoved
in interface DsEventListener
public void onDsFocused(java.lang.Object id)
onDsFocused
in interface DsEventListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |