Class sgraphics.Picker
All Packages Class Hierarchy This Package Previous Next Index
Class sgraphics.Picker
java.lang.Object
|
+----sgraphics.Picker
- public class Picker
- extends Object
Picker is used to pick the glyph tree.
-
area
- Area for a DAMAGE based pick.
-
AREA
-
-
height
-
-
hitType
- The type of hit.
-
POINT
-
-
width
-
-
x
-
-
y
-
-
Picker(Picker, Viewer)
-
-
Picker(Viewer, Area)
- Create a picker using an area.
-
Picker(Viewer, GraphicsEvent)
- Create a picker using an event.
-
attach(Picker)
-
-
detach(Picker)
-
-
getNext()
-
-
getPrevious()
-
-
getViewer()
-
-
hit()
-
-
hit(Glyph)
- Call hit when the event intersects a glyph.
-
hitList()
- Get the hit list.
-
hits()
- Get the number of hits.
-
setPrevious(Picker)
-
AREA
public final static int AREA
POINT
public final static int POINT
hitType
public int hitType
- The type of hit. Can be AREA or POINT.
x
public float x
y
public float y
width
public float width
height
public float height
area
public Area area
- Area for a DAMAGE based pick.
Picker
public Picker(Viewer viewer,
GraphicsEvent event)
- Create a picker using an event.
- Parameters:
- event - the event to use to set the x and y.
Picker
public Picker(Picker picker,
Viewer viewer)
Picker
public Picker(Viewer viewer,
Area a)
- Create a picker using an area. The alignment is not used.
- Parameters:
- a - the area to use to set the x, y, length, and height.
hit
public void hit(Glyph g)
- Call hit when the event intersects a glyph.
- Parameters:
- g - the glyph that was hit.
hit
public boolean hit()
hits
public int hits()
- Get the number of hits.
- Returns:
- the number of hits.
hitList
public Glyph[] hitList()
- Get the hit list. Do not use the length of the list to determine
the number of elements. Call hits() instead. This list may be
longer than the number of hits.
- Returns:
- the hit list.
attach
public void attach(Picker pick)
setPrevious
protected void setPrevious(Picker pick)
detach
public void detach(Picker pick)
getNext
public Picker getNext()
getPrevious
public Picker getPrevious()
getViewer
public Viewer getViewer()
All Packages Class Hierarchy This Package Previous Next Index