public class IlvChartPanInteractor extends IlvChartInteractor
The registered name of this interactor is "Pan".
INTERNAL_HIGH, INTERNAL_LOW, NORMAL| Constructor and Description |
|---|
IlvChartPanInteractor()
Creates a new
IlvChartPanInteractor object associated with
the BUTTON3 InputEvent mask and linked to the first Y-axis. |
IlvChartPanInteractor(int buttonMask)
Creates a new
IlvChartPanInteractor object associated with
the given mouse button mask and linked to the first Y-axis. |
IlvChartPanInteractor(int yAxisIndex,
int buttonMask)
Creates a new
IlvChartPanInteractor object associated with
the given mouse button event mask and linked to the given Y-axis. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
abort()
Called when the interaction has been aborted.
|
protected void |
endOperation(MouseEvent event)
Called when the interaction ends.
|
protected Cursor |
getCursor()
Returns the cursor associated with this interactor.
|
static String |
getLocalizedName(Locale locale)
Returns a localized name for this interactor class.
|
boolean |
has3DSupport()
Indicates whether the interactor can be used with a 3D chart.
|
protected boolean |
isValidStartPoint(double x,
double y)
Returns whether the given point (in data coordinate) is valid.
|
boolean |
isXPanAllowed()
Returns whether panning along the X-axis is allowed.
|
boolean |
isYPanAllowed()
Returns whether panning along the Y-axis is allowed.
|
protected void |
pan(IlvDoublePoints oldPos,
IlvDoublePoints newPos)
Called by the
processMouseMotionEvent method to pan the
chart. |
void |
processMouseEvent(MouseEvent event)
Handles the mouse events.
|
void |
processMouseMotionEvent(MouseEvent event)
Handles the mouse motion events.
|
void |
setXPanAllowed(boolean xpan)
Sets whether panning along the X-axis is allowed.
|
void |
setYPanAllowed(boolean ypan)
Sets whether panning along the Y-axis is allowed.
|
protected void |
startOperation(MouseEvent event)
Called when the interaction starts.
|
addChartInteractionListener, chartConnected, create, create, disableEvents, drawGhost, drawGhost, enableEvents, fireChartInteractionEvent, getAWTEventMask, getChart, getCoordinateSystem, getData, getData, getEventMask, getEventMaskEx, getGhostBounds, getGhostColor, getInteractorClassByName, getLocalizedName, getPriority, getRegisteredInteractorsByName, getShortName, getXAxis, getXORColor, getYAxis, getYAxisIndex, handleExpose, initGhostGraphics, interactionStarted, isAborted, isAllowDrawGhost, isConsumeEvents, isHandling, isInOperation, isXORGhost, processKeyEvent, register, removeChartInteractionListener, setAborted, setAllowDrawGhost, setChart, setConsumeEvents, setCursor, setEventMask, setGhostColor, setInOperation, setPriority, setXORColor, setXORGhost, setYAxisIndex, toDisplaypublic IlvChartPanInteractor()
IlvChartPanInteractor object associated with
the BUTTON3 InputEvent mask and linked to the first Y-axis.public IlvChartPanInteractor(int buttonMask)
IlvChartPanInteractor object associated with
the given mouse button mask and linked to the first Y-axis.public IlvChartPanInteractor(int yAxisIndex,
int buttonMask)
IlvChartPanInteractor object associated with
the given mouse button event mask and linked to the given Y-axis.public static String getLocalizedName(Locale locale)
public boolean isXPanAllowed()
setXPanAllowed(boolean)public void setXPanAllowed(boolean xpan)
true.public boolean isYPanAllowed()
setYPanAllowed(boolean)public void setYPanAllowed(boolean ypan)
false.protected Cursor getCursor()
MOVE_CURSOR predefined mouse cursor.public void processMouseEvent(MouseEvent event)
processMouseEvent in class IlvChartInteractorpublic void processMouseMotionEvent(MouseEvent event)
processMouseMotionEvent in class IlvChartInteractorprotected boolean isValidStartPoint(double x,
double y)
true.protected void pan(IlvDoublePoints oldPos, IlvDoublePoints newPos)
processMouseMotionEvent method to pan the
chart. By default it computes the delta and calls
IlvChart.scroll().oldPos - The old position of the mouse cursor in data coordinates.newPos - The new position of the mouse cursor in data coordinates.public boolean has3DSupport()
has3DSupport in interface IlvChart3DSupporthas3DSupport in class IlvChartInteractorfalse.protected void startOperation(MouseEvent event)
startOperation in class IlvChartInteractorevent - The event that starts the interaction.IlvChartInteractor.interactionStarted(ilog.views.chart.IlvChartInteractor, java.awt.event.MouseEvent)protected void endOperation(MouseEvent event)
endOperation in class IlvChartInteractorevent - The event that ends the interaction.protected void abort()
abort in class IlvChartInteractor© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.