|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.graphics.components.PickInfo
public class PickInfo
A PickInfo provides a mapping from a data-element to all of its associated data and is contained inside each delivered ProbeEvent. A "Probe" event is delivered when a mouse pointer moves over a region of a Graph occupied by a data-element. A ProbeEvent object is passed as an argument to a ProbeListener's "probeUpdate" method. Register a ProbeListener to a Graph to receive these events.
"data-elements" are those chart graphics depicting the values found in the data model. For example the bars in the BarChart are data-elements but the axis, legend, titles, footnotes, etc are not.
Graph
,
ProbeEvent
,
ProbeListener
,
ProbeListener.probeUpdate(com.sas.graphics.components.ProbeEvent)
Field Summary | |
---|---|
static java.lang.String |
FORMATTED_VALUE
|
static java.lang.String |
ID
|
static java.lang.String |
LABEL
|
static java.lang.String |
RB_KEY
|
static java.lang.String |
VALUE
|
static java.lang.String |
VISIBLE
|
Constructor Summary | |
---|---|
PickInfo(java.util.Vector[] newLabelValuePairs,
int newObservationIndex,
java.lang.Object newModel,
int newX,
int newY,
java.awt.event.MouseEvent newMouseEvent)
Constructs a PickInfo object. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Determines whether another object is equal to this MarkerStyle . |
java.util.Vector[] |
getLabelValueCollection()
Return the data values associated with the data-element in the form of a series of vectors. |
java.lang.Object |
getModel()
Get a handle to the data source. |
java.awt.event.MouseEvent |
getMouseEvent()
Get the mouse event that triggered the ProbeEvent. |
int |
getObservationIndex()
Get the Row index in the model that is associated with the data-element |
int |
getX()
The X portion of the screen coordinate that was picked against. |
int |
getY()
The Y portion of the screen coordinate that was picked against. |
void |
setLabelValueCollection(java.util.Vector[] newLabelValuePairs)
Set the data values associated with the data-element in the form of a series of vectors. |
void |
setModel(java.lang.Object newModel)
Set a handle to the data source. |
void |
setMouseEvent(java.awt.event.MouseEvent newMouseEvent)
Set the mouse event that triggered the ProbeEvent. |
void |
setObservationIndex(int newObservationIndex)
Set the Row index in the model that is associated with the data-element |
void |
setX(int newX)
Used to set the X portion of the screen coordinate that was picked against. |
void |
setY(int newY)
Used to set the Y portion of the screen coordinate that was picked against. |
Field Detail |
---|
public static final java.lang.String RB_KEY
public static final java.lang.String ID
public static final java.lang.String VALUE
public static final java.lang.String FORMATTED_VALUE
public static final java.lang.String LABEL
public static final java.lang.String VISIBLE
Constructor Detail |
---|
public PickInfo(java.util.Vector[] newLabelValuePairs, int newObservationIndex, java.lang.Object newModel, int newX, int newY, java.awt.event.MouseEvent newMouseEvent)
newLabelValuePairs
- the data values associated with the data-element in the form of a series of vectorsnewObservationIndex
- the Row index in the model that is associated with the data-elementnewModel
- a handle to the data sourcenewX
- the X portion of the screen coordinate that was picked againstnewY
- the Y portion of the screen coordinate that was picked againstnewMouseEvent
- the mouse event that triggered the ProbeEventMethod Detail |
---|
public int getX()
setX(int)
,
getY()
public void setX(int newX)
newX
- the X portion of the screen coordinate that was picked againstgetX()
public int getY()
setY(int)
,
getX()
public void setY(int newY)
newY
- the Y portion of the screen coordinate that was picked againstgetY()
public java.awt.event.MouseEvent getMouseEvent()
setMouseEvent(java.awt.event.MouseEvent)
public void setMouseEvent(java.awt.event.MouseEvent newMouseEvent)
newMouseEvent
- the mouse event that triggered the ProbeEvent.getMouseEvent()
public java.util.Vector[] getLabelValueCollection()
public void setLabelValueCollection(java.util.Vector[] newLabelValuePairs)
newLabelValuePairs
- the array of hashtable associationspublic int getObservationIndex()
setObservationIndex(int)
public void setObservationIndex(int newObservationIndex)
newObservationIndex
- the Row index in the model that is associated with the data-elementgetObservationIndex()
public java.lang.Object getModel()
setModel(java.lang.Object)
public void setModel(java.lang.Object newModel)
newModel
- handle to the data sourcegetModel()
public boolean equals(java.lang.Object obj)
MarkerStyle
.
The result is true
if and only if the argument is not
null
and is a MarkerStyle
object that has the same
property values as this object.
equals
in class java.lang.Object
obj
- the object to test for equality with this
MarkerStyle
true
if the objects are the same;
false
otherwise.
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |