public class IlvChartHighlightInteractor extends IlvChartDataInteractor
The registered name of this interactor is "Highlight".
IlvChartInteractor,
Serialized FormIlvChartDataInteractor.DataPicker| Modifier and Type | Field and Description |
|---|---|
static int |
HIGHLIGHT_POINT
Highlight mode used to highlight points.
|
static int |
HIGHLIGHT_SERIES
Highlight mode used to highlight data sets.
|
ITEM_PICKING, NEARESTITEM_PICKING, NEARESTPOINT_PICKINGINTERNAL_HIGH, INTERNAL_LOW, NORMAL| Constructor and Description |
|---|
IlvChartHighlightInteractor()
Creates a new
IlvChartHighlightInteractor object linked to
the first Y-axis index. |
IlvChartHighlightInteractor(int yAxisIndex)
Creates a new
IlvChartHighlightInteractor object linked to
the given axis. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doIt(IlvDisplayPoint highlightedPoint,
boolean isHighlighted,
MouseEvent event)
Called by the
processXXXEvent() methods when the highlight
state of the given point has changed. |
IlvDisplayPoint |
getHighlightedPoint()
Returns the current highlighted point.
|
int |
getHighlightMode()
Returns the highlight mode.
|
static String |
getLocalizedName(Locale locale)
Returns a localized name for this interactor class.
|
boolean |
isHandling(int x,
int y)
Returns whether the mouse event occurred at the specified
location should be handled by the interactor.
|
void |
processMouseEvent(MouseEvent event)
Processes a mouse event.
|
void |
processMouseMotionEvent(MouseEvent event)
Processes a mouse motion event.
|
void |
processMouseMovedEvent(MouseEvent event)
Processes a mouse motion event with no button pressed.
|
void |
setHighlightedPoint(IlvDisplayPoint point)
Sets the current highlighted point.
|
void |
setHighlightMode(int highlightMode)
Sets the highlight mode.
|
createDataPicker, getPickingMode, pickData, pickData, setPickingModeabort, addChartInteractionListener, chartConnected, create, create, disableEvents, drawGhost, drawGhost, enableEvents, endOperation, fireChartInteractionEvent, getAWTEventMask, getChart, getCoordinateSystem, getData, getData, getEventMask, getEventMaskEx, getGhostBounds, getGhostColor, getInteractorClassByName, getLocalizedName, getPriority, getRegisteredInteractorsByName, getShortName, getXAxis, getXORColor, getYAxis, getYAxisIndex, handleExpose, has3DSupport, initGhostGraphics, interactionStarted, isAborted, isAllowDrawGhost, isConsumeEvents, isInOperation, isXORGhost, processKeyEvent, register, removeChartInteractionListener, setAborted, setAllowDrawGhost, setChart, setConsumeEvents, setCursor, setEventMask, setGhostColor, setInOperation, setPriority, setXORColor, setXORGhost, setYAxisIndex, startOperation, toDisplaypublic static final int HIGHLIGHT_POINT
setHighlightMode(int),
Constant Field Valuespublic static final int HIGHLIGHT_SERIES
setHighlightMode(int),
Constant Field Valuespublic IlvChartHighlightInteractor()
IlvChartHighlightInteractor object linked to
the first Y-axis index.public IlvChartHighlightInteractor(int yAxisIndex)
IlvChartHighlightInteractor object linked to
the given axis.public static String getLocalizedName(Locale locale)
public int getHighlightMode()
setHighlightMode(int)public void setHighlightMode(int highlightMode)
highlightMode - The highlight mode. If set to
HIGHLIGHT_POINT, a pair of highlight and unhighlight events is
sent whenever the mouse enters and leaves a display point. If set to
HIGHLIGHT_SERIES, the highlight and unhighlight events
are sent only if the new display point does not belong to the
same data set as the previously highlighted point. The default mode is
HIGHLIGHT_POINT.IllegalArgumentException - The mode is invalid.getHighlightMode()public IlvDisplayPoint getHighlightedPoint()
public void setHighlightedPoint(IlvDisplayPoint point)
public boolean isHandling(int x,
int y)
true.isHandling in class IlvChartInteractorpublic void processMouseEvent(MouseEvent event)
processMouseEvent in class IlvChartInteractorpublic void processMouseMotionEvent(MouseEvent event)
processMouseMotionEvent in class IlvChartInteractorpublic void processMouseMovedEvent(MouseEvent event)
event - An event of type MOUSE_MOVED or
MOUSE_ENTERED.protected void doIt(IlvDisplayPoint highlightedPoint, boolean isHighlighted, MouseEvent event)
processXXXEvent() methods when the highlight
state of the given point has changed. By default, fires a
ChartHighlightInteractionEvent.highlightedPoint - The display point.isHighlighted - The type of notification that occurred.event - The mouseEvent that leads to this notification.IlvChartInteractor.addChartInteractionListener(ilog.views.chart.event.ChartInteractionListener),
ChartInteractionEvent© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.