public class IlvChartCycleSelectInteractor extends IlvChartInteractor
This interactor can be instantiated in two modes:
TRAVERSE_ALL mode, which allows to navigate through all
elements with two keys (forward and backward move).BY_LEVEL mode, which allows to navigate through all
elements with four keys (forward move, backward move, level down, and
level up).IlvChartAreaAccessibleHierarchy,
IlvChartAreaNavigationMode,
IlvChartAreaSelectionManager,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static IlvChartAreaNavigationMode |
BY_LEVEL
In this mode, the user navigates through all elements with four keys.
|
static IlvChartAreaNavigationMode |
TRAVERSE_ALL
In this mode, the user navigates through all elements with two keys:
forward move and backward move.
|
INTERNAL_HIGH, INTERNAL_LOW, NORMAL| Constructor and Description |
|---|
IlvChartCycleSelectInteractor()
Creates an interactor in
TRAVERSE_ALL mode with default keys. |
IlvChartCycleSelectInteractor(IlvChartAreaNavigationMode mode)
Creates an interactor with default keys: Tab and Shift-Tab for the
TRAVERSE_ALL mode, or right arrow, left arrow, down arrow,
up arrow for the BY_LEVEL mode. |
IlvChartCycleSelectInteractor(IlvChartAreaNavigationMode mode,
KeyStroke[] forwardKeys,
KeyStroke[] backwardKeys,
KeyStroke[] downKeys,
KeyStroke[] upKeys)
Creates an interactor with four keys.
|
IlvChartCycleSelectInteractor(IlvChartAreaNavigationMode mode,
KeyStroke forwardKey,
KeyStroke backwardKey)
Creates an interactor with two keys, in
TRAVERSE_ALL mode. |
IlvChartCycleSelectInteractor(IlvChartAreaNavigationMode mode,
KeyStroke forwardKey,
KeyStroke backwardKey,
KeyStroke downKey,
KeyStroke upKey)
Creates an interactor with four keys.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
abort()
Called when the interaction has been aborted.
|
protected void |
chartConnected(IlvChart oldChart,
IlvChart newChart)
This method is overridden to initialize a new
IlvDefaultChartAreaAccessibleHierarchy. |
IlvChartAreaAccessibleHierarchy |
createAccessibleHierarchy(IlvChart chart)
Creates the hierarchy of accessible elements of a chart.
|
IlvChartAreaAccessibleHierarchy |
getAccessibleHierarchy()
Returns the hierarchy of accessible elements of a chart.
|
KeyStroke[] |
getBackwardKeys()
Returns the set of key designators for the "backward" action.
|
KeyStroke[] |
getDownKeys()
Returns the set of key designators for the "descend" action.
|
KeyStroke[] |
getForwardKeys()
Returns the set of key designators for the "forward" action.
|
static String |
getLocalizedName(Locale locale)
Returns a localized name for this interactor class.
|
IlvChartAreaNavigationMode |
getMode()
Returns the mode of this interactor.
|
IlvChartAreaSelectionManager |
getSelectionManager()
Returns the object that manages and renders the selection.
|
KeyStroke[] |
getUpKeys()
Returns the set of key designators for the "ascend back" action.
|
protected int |
matches(KeyEvent event,
KeyStroke key)
Tests how closely the given event matches the given key designator.
|
void |
moveBackward()
Moves the selection backward, to the previous element,
according to the mode.
|
void |
moveDown()
Moves the selection downward, that is, to a level with more details.
|
void |
moveForward()
Moves the selection forward, to the next element,
according to the mode.
|
void |
moveUp()
Moves the selection upward, that is, to a level with less details.
|
void |
processKeyEvent(KeyEvent event)
Handles a keyboard event.
|
void |
setSelectionManager(IlvChartAreaSelectionManager manager)
Sets the object that manages and renders the selection.
|
addChartInteractionListener, 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, toDisplaypublic static final IlvChartAreaNavigationMode TRAVERSE_ALL
getMode()public static final IlvChartAreaNavigationMode BY_LEVEL
public IlvChartCycleSelectInteractor()
TRAVERSE_ALL mode with default keys.public IlvChartCycleSelectInteractor(IlvChartAreaNavigationMode mode)
TRAVERSE_ALL mode, or right arrow, left arrow, down arrow,
up arrow for the BY_LEVEL mode.mode - One of TRAVERSE_ALL, BY_LEVEL.public IlvChartCycleSelectInteractor(IlvChartAreaNavigationMode mode, KeyStroke forwardKey, KeyStroke backwardKey)
TRAVERSE_ALL mode.mode - Must be TRAVERSE_ALL.forwardKey - A key designator, or null.backwardKey - A key designator, or null.public IlvChartCycleSelectInteractor(IlvChartAreaNavigationMode mode, KeyStroke forwardKey, KeyStroke backwardKey, KeyStroke downKey, KeyStroke upKey)
mode - Must be BY_LEVEL.forwardKey - A key designator, or null.backwardKey - A key designator, or null.downKey - A key designator, or null.upKey - A key designator, or null.public IlvChartCycleSelectInteractor(IlvChartAreaNavigationMode mode, KeyStroke[] forwardKeys, KeyStroke[] backwardKeys, KeyStroke[] downKeys, KeyStroke[] upKeys)
mode - Must be BY_LEVEL.forwardKeys - A set of key designators, or null.backwardKeys - A set of key designators, or null.downKeys - A set of key designators, or null.upKeys - A set of key designators, or null.public static String getLocalizedName(Locale locale)
public IlvChartAreaNavigationMode getMode()
TRAVERSE_ALL, BY_LEVEL.public KeyStroke[] getForwardKeys()
null.public KeyStroke[] getBackwardKeys()
null.public KeyStroke[] getDownKeys()
null.public KeyStroke[] getUpKeys()
null.public IlvChartAreaAccessibleHierarchy createAccessibleHierarchy(IlvChart chart)
The default implementation returns an instance of
IlvDefaultChartAreaAccessibleHierarchy.
public IlvChartAreaAccessibleHierarchy getAccessibleHierarchy()
null if this interactor is currently not attached.public IlvChartAreaSelectionManager getSelectionManager()
public void setSelectionManager(IlvChartAreaSelectionManager manager)
protected void chartConnected(IlvChart oldChart, IlvChart newChart)
IlvDefaultChartAreaAccessibleHierarchy.chartConnected in class IlvChartInteractoroldChart - The previous attached chart.newChart - The new attached chart.IlvChart.addInteractor(ilog.views.chart.IlvChartInteractor)protected void abort()
abort in class IlvChartInteractorpublic void processKeyEvent(KeyEvent event)
This method compares the event against the given keystrokes
getForwardKeys(), getBackwardKeys(),
getDownKeys(), getUpKeys(), and if one of them matches,
it invokes one of the methods moveForward(),
moveBackward(), moveDown(), moveUp().
processKeyEvent in class IlvChartInteractorprotected int matches(KeyEvent event, KeyStroke key)
event - A keyboard event.key - A key designator.public void moveForward()
public void moveBackward()
public void moveDown()
TRAVERSE_ALL mode.public void moveUp()
TRAVERSE_ALL mode.© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.