public class IlvChartLocalReshapeInteractor extends IlvChartInteractor
IlvLocalZoomAxisTransformer.
The registered name of the interactor is "LocalReshape".
IlvLocalZoomAxisTransformer,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_X_TRANSFORMER
The x transformer maximum bound.
|
static int |
MAX_Y_TRANSFORMER
The y transformer maximum bound.
|
static int |
MIN_X_TRANSFORMER
The x transformer minimum bound.
|
static int |
MIN_Y_TRANSFORMER
The y transformer minimum bound.
|
static int |
NONE
The "no resized" bound.
|
INTERNAL_HIGH, INTERNAL_LOW, NORMAL| Constructor and Description |
|---|
IlvChartLocalReshapeInteractor()
Creates a new
IlvChartLocalReshapeInteractor object
with the action button set to InputEvent.BUTTON1_DOWN_MASK
and linked to the first Y-axis. |
IlvChartLocalReshapeInteractor(int yAxisIndex,
int eventMask)
Creates a new
IlvChartLocalReshapeInteractor object. |
| 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 used by this interactor.
|
static String |
getLocalizedName(Locale locale)
Returns a localized name for this interactor class.
|
int |
getResizedBound()
Returns the resized bound.
|
protected IlvLocalZoomAxisTransformer |
getXTransformer()
Returns the
IlvLocalZoomAxisTransformer associated
with the X-axis. |
protected IlvLocalZoomAxisTransformer |
getYTransformer()
Returns the
IlvLocalZoomAxisTransformer associated
with the X-axis. |
boolean |
has3DSupport()
Indicates whether the interactor can be used with a 3D chart.
|
boolean |
isHandling(int x,
int y)
Returns whether the mouse event that occurred at the specified
location is handled by the interactor.
|
protected boolean |
isValidStartPoint(double x,
double y)
Analyzes the given starting point (x,y), in data coordinates.
|
void |
processMouseEvent(MouseEvent event)
Handles the mouse events.
|
void |
processMouseMotionEvent(MouseEvent event)
Handles the mouse motion events.
|
void |
processMouseMovedEvent(MouseEvent event)
Handles a mouse motion event with no button pressed.
|
protected void |
reshape(double newx,
double newy)
Called when the interaction ends to reshape the local zoom window
to the new values given as parameter.
|
protected void |
startOperation(MouseEvent event)
Called when the interaction starts.
|
protected void |
validate(IlvDoublePoints points)
Called by the
processXXXXEvent methods to validate the new
bounds given as parameter. |
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, isInOperation, isXORGhost, processKeyEvent, register, removeChartInteractionListener, setAborted, setAllowDrawGhost, setChart, setConsumeEvents, setCursor, setEventMask, setGhostColor, setInOperation, setPriority, setXORColor, setXORGhost, setYAxisIndex, toDisplaypublic static final int NONE
public static final int MIN_X_TRANSFORMER
public static final int MAX_X_TRANSFORMER
public static final int MIN_Y_TRANSFORMER
public static final int MAX_Y_TRANSFORMER
public IlvChartLocalReshapeInteractor()
IlvChartLocalReshapeInteractor object
with the action button set to InputEvent.BUTTON1_DOWN_MASK
and linked to the first Y-axis.public IlvChartLocalReshapeInteractor(int yAxisIndex,
int eventMask)
IlvChartLocalReshapeInteractor object.yAxisIndex - The Y-axis index.eventMask - A valid InputEvent button event mask value
describing the button used to start the action.public static String getLocalizedName(Locale locale)
public int getResizedBound()
NONE,
MIN_X_TRANSFORMER,
MAX_X_TRANSFORMER,
MIN_Y_TRANSFORMER,
MAX_Y_TRANSFORMERprotected IlvLocalZoomAxisTransformer getXTransformer()
IlvLocalZoomAxisTransformer associated
with the X-axis. Returns null whether there is no
transformer or it is not a local zoom.protected IlvLocalZoomAxisTransformer getYTransformer()
IlvLocalZoomAxisTransformer associated
with the X-axis. Returns null whether there is no
transformer or it is not a local zoom.protected Cursor getCursor()
Cursor.HAND_CURSOR by default. You may
override this method if you want to use another one.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 boolean isValidStartPoint(double x,
double y)
true if one is found.protected void validate(IlvDoublePoints points)
processXXXXEvent methods to validate the new
bounds given as parameter.protected void reshape(double newx,
double newy)
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.