public class IlvChartActionInteractor extends IlvChartInteractor
IlvChartAction
objects. By default, this class
associates:
IlvChartZoomAction
),IlvChartZoomAction
),IlvChartFitAction
).
You can modify the default behavior or use your own action classes by
overriding the getAction()
method.
The registered name for this interactor is "ChartAction".
Modifier and Type | Field and Description |
---|---|
static String |
ACTION_COMMAND
The
actionCommand string for ActionEvent events
coming from the interactor. |
INTERNAL_HIGH, INTERNAL_LOW, NORMAL
Constructor and Description |
---|
IlvChartActionInteractor()
Creates a new
IlvChartActionInteractor object. |
Modifier and Type | Method and Description |
---|---|
protected IlvChartAction |
getAction(KeyEvent event)
Returns an
IlvChartAction object corresponding to the
given event. |
static String |
getLocalizedName(Locale locale)
Returns a localized name for this interactor class.
|
void |
processKeyEvent(KeyEvent event)
Processes the key events.
|
abort, 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, isHandling, isInOperation, isXORGhost, processMouseEvent, processMouseMotionEvent, register, removeChartInteractionListener, setAborted, setAllowDrawGhost, setChart, setConsumeEvents, setCursor, setEventMask, setGhostColor, setInOperation, setPriority, setXORColor, setXORGhost, setYAxisIndex, startOperation, toDisplay
public static final String ACTION_COMMAND
actionCommand
string for ActionEvent
events
coming from the interactor.public IlvChartActionInteractor()
IlvChartActionInteractor
object.public static String getLocalizedName(Locale locale)
protected IlvChartAction getAction(KeyEvent event)
IlvChartAction
object corresponding to the
given event. May returns null
if no action matches the
event.
By default, VK_Z is associated with an IlvChartZoomAction
with a zoom factor of 2, VK_U is associated with an
IlvChartZoomAction
with a zoom factor of .5, and VK_F is
associated with an IlvChartFitAction
.
IlvChartAction
,
IlvChartZoomAction
,
IlvChartFitAction
public void processKeyEvent(KeyEvent event)
getAction()
) and calls its
actionPerformed
method.processKeyEvent
in class IlvChartInteractor
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.