public abstract class IlvChartScrollInteractor extends IlvChartInteractor
Modifier and Type | Field and Description |
---|---|
static int |
NEGATIVE_DIR
Describes a scroll in the negative direction.
|
static int |
POSITIVE_DIR
Describes a scroll in the positive direction.
|
INTERNAL_HIGH, INTERNAL_LOW, NORMAL
Constructor and Description |
---|
IlvChartScrollInteractor(int negativeDirKey,
int positiveDirKey,
int step)
Creates a new
IlvChartScrollInteractor object. |
IlvChartScrollInteractor(int yAxisIndex,
int negativeDirKey,
int positiveDirKey,
int step)
Creates a new
IlvChartScrollInteractor object. |
Modifier and Type | Method and Description |
---|---|
protected abstract IlvAxis |
getAxis()
Returns the axis scrolled by this interactor
|
protected double |
getDelta()
Returns the delta value (in data) of the scroll.
|
int |
getNegativeDirectionKey()
Returns the key associated with a scroll in the negative direction.
|
int |
getPositiveDirectionKey()
Returns the key associated with a scroll in the positive direction.
|
int |
getStep()
Returns the scrolling step.
|
void |
processKeyEvent(KeyEvent event)
Handles the key events.
|
protected abstract void |
scroll(int Direction)
Called when a scroll is performed in the given direction.
|
void |
setNegativeDirectionKey(int key)
Sets the key associated with a scroll in the negative direction.
|
void |
setPositiveDirectionKey(int key)
Sets the key associated with a scroll in the positive direction.
|
void |
setStep(int step)
Sets the number of scale step to scroll or the percentage of the visible
range to scroll, whether a steps definition for the scrolled axis is
available.
|
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 int POSITIVE_DIR
public static final int NEGATIVE_DIR
public IlvChartScrollInteractor(int negativeDirKey, int positiveDirKey, int step)
IlvChartScrollInteractor
object.negativeDirKey
- The key associated with a scroll in the negative
direction.positiveDirKey
- The key associated with a scroll in the positive
direction.step
- The number of steps to scroll or the percentage of the
visible range to scroll whether a steps definition for the
scrolled axis is available.public IlvChartScrollInteractor(int yAxisIndex, int negativeDirKey, int positiveDirKey, int step)
IlvChartScrollInteractor
object.yAxisIndex
- The Y-axis index.negativeDirKey
- The key associated with a scroll in the negative
direction.positiveDirKey
- The key associated with a scroll in the positive
direction.step
- The number of steps to scroll or the percentage of the
visible range to scroll, whether a steps definition for the
scrolled axis is available.public final int getPositiveDirectionKey()
public final void setPositiveDirectionKey(int key)
public final int getNegativeDirectionKey()
public final void setNegativeDirectionKey(int key)
public final int getStep()
setStep(int)
public final void setStep(int step)
public void processKeyEvent(KeyEvent event)
processKeyEvent
in class IlvChartInteractor
protected abstract IlvAxis getAxis()
protected abstract void scroll(int Direction)
protected double getDelta()
scroll(int)
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.