|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--manifold.base.Traversal
Copyright (c) 2000 Rutgers, The State University of New Jersey
| Field Summary | |
static int |
DRAW
Specifies draw traversal. |
protected java.lang.Object |
graphics_
|
int |
operation_
|
static int |
OTHER
Specifies traversal for other purposes. |
static int |
PICK_ALL
Specifies pick traversal resulting in pick of all items which intersects with the specified pick shape. |
static int |
PICK_ALL_SORTED
Specifies pick traversal resulting in pick of all items which intersects with the specified pick shape. |
static int |
PICK_ANY
Specifies pick traversal resulting in pick of one item which intersects with the specified pick shape. |
static int |
PICK_TOP
Specifies pick traversal resulting in pick of the top item which intersects with the specified pick shape. |
protected java.lang.Object |
pickPoint_
|
protected java.util.Stack |
stack_
|
protected java.lang.Object |
transform_
|
| Constructor Summary | |
Traversal(int operation)
|
|
Traversal(Traversal t)
|
|
| Method Summary | |
Traversal |
getFirstPicked()
Returns the traversal containing the first glyph which was hit in a pick traversal of the scenegraph. |
java.lang.Object |
getGraphics()
|
Traversal |
getLastPicked()
Returns the traversal containing the last glyph which was hit in a pick traversal of the scenegraph. |
java.lang.Object |
getPickPoint()
|
java.lang.Object |
getTransform()
|
void |
hit()
Mark current glyph as a hit in a pick traversal of the scenegraph. |
void |
setGraphics(java.lang.Object graphics)
|
void |
setPickPoint(java.lang.Object pickPoint)
|
abstract void |
traverseChild(Glyph g)
Traverses to the specified Glyph. |
void |
visit()
This method must be overridden by subclasses which do other traversals than draw and pick (i.e. using GlyphViewTraversal2D.OTHER as operation). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int DRAW
public static final int PICK_ANY
public static final int PICK_TOP
public static final int PICK_ALL
public static final int PICK_ALL_SORTED
public static final int OTHER
public int operation_
protected java.util.Stack stack_
protected java.lang.Object transform_
protected java.lang.Object graphics_
protected java.lang.Object pickPoint_
| Constructor Detail |
public Traversal(int operation)
public Traversal(Traversal t)
| Method Detail |
public abstract void traverseChild(Glyph g)
g - the Glyph to traverse to.public void hit()
public java.lang.Object getPickPoint()
public void setPickPoint(java.lang.Object pickPoint)
public Traversal getLastPicked()
public Traversal getFirstPicked()
public void visit()
public java.lang.Object getTransform()
public java.lang.Object getGraphics()
public void setGraphics(java.lang.Object graphics)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||