public class IlvChart3DViewInteractor extends IlvChartInteractor
IlvChart.get3DView()
,
IlvChart.is3D()
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
NONE
No action type.
|
static int |
ROTATE
Rotate action type.
|
static int |
ZOOM
Zoom action type.
|
INTERNAL_HIGH, INTERNAL_LOW, NORMAL
Constructor and Description |
---|
IlvChart3DViewInteractor()
Creates a new
IlvChart3DViewInteractor object. |
IlvChart3DViewInteractor(int angleEventMask,
int zoomEventMask)
Creates a new
IlvChart3DViewInteractor object associated
with the specified mouse button masks. |
Modifier and Type | Method and Description |
---|---|
protected void |
abort()
Called when the interaction is aborted.
|
protected void |
adjustView(Point oldPos,
Point newPos,
int action)
Adjusts the view point.
|
protected void |
endOperation(MouseEvent event)
Called when the interaction ends.
|
protected int |
getAction()
Returns the current action.
|
int |
getAngleEventMask()
Returns the event mask used for rotating the view.
|
int |
getAngleEventMaskEx()
Returns the event mask used for rotating the view, according to the
conventions of
java.awt.event.InputEvent.getModifiersEx() . |
protected Cursor |
getCursor()
Returns the cursor associated with this interactor.
|
static String |
getLocalizedName(Locale locale)
Returns a localized name for this interactor class.
|
int |
getZoomEventMask()
Returns the event mask used for zooming the view.
|
int |
getZoomEventMaskEx()
Returns the event mask used for zooming the view, according to the
conventions of
java.awt.event.InputEvent.getModifiersEx() . |
boolean |
isHandling(int x,
int y)
Returns whether the mouse event occurred at the specified
location should be handled by the interactor.
|
void |
processMouseEvent(MouseEvent event)
Handles the mouse events.
|
void |
processMouseMotionEvent(MouseEvent event)
Handles the mouse motion events.
|
void |
setAngleEventMask(int angleEventMask)
Sets the event mask used for rotating the view.
|
void |
setZoomEventMask(int zoomEventMask)
Sets the event mask used for zooming the view.
|
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, has3DSupport, initGhostGraphics, interactionStarted, isAborted, isAllowDrawGhost, isConsumeEvents, isInOperation, isXORGhost, processKeyEvent, register, removeChartInteractionListener, setAborted, setAllowDrawGhost, setChart, setConsumeEvents, setCursor, setEventMask, setGhostColor, setInOperation, setPriority, setXORColor, setXORGhost, setYAxisIndex, toDisplay
public static final int NONE
getAction()
,
Constant Field Valuespublic static final int ROTATE
getAction()
,
Constant Field Valuespublic static final int ZOOM
getAction()
,
Constant Field Valuespublic IlvChart3DViewInteractor()
IlvChart3DViewInteractor
object.
The default event masks are set to:
CTRL + BUTTON1
for changing the view angles
(elevation and rotation).SHIFT + BUTTON1
for zooming the view.public IlvChart3DViewInteractor(int angleEventMask, int zoomEventMask)
IlvChart3DViewInteractor
object associated
with the specified mouse button masks.angleEventMask
- The event mask used for changing the view angles.zoomEventMask
- The event mask used for zooming the view.public static String getLocalizedName(Locale locale)
public final int getZoomEventMask()
setZoomEventMask(int)
public final int getZoomEventMaskEx()
java.awt.event.InputEvent.getModifiersEx()
.
This mask is computed from getZoomEventMask()
.getZoomEventMask()
,
setZoomEventMask(int)
public void setZoomEventMask(int zoomEventMask)
Note: In the mask,
InputEvent.BUTTON2_DOWN_MASK
should be used instead of
InputEvent.BUTTON2_MASK
, and
InputEvent.BUTTON3_DOWN_MASK
should be used instead of InputEvent.BUTTON3_MASK
,
because the values of ALT_MASK/BUTTON2_MASK
and
META_MASK/BUTTON3_MASK
overlap.
getZoomEventMask()
public final int getAngleEventMask()
setAngleEventMask(int)
public final int getAngleEventMaskEx()
java.awt.event.InputEvent.getModifiersEx()
.
This mask is computed from getZoomEventMask()
.getAngleEventMask()
,
setAngleEventMask(int)
public void setAngleEventMask(int angleEventMask)
Note: In the mask,
InputEvent.BUTTON2_DOWN_MASK
should be used instead of
InputEvent.BUTTON2_MASK
, and
InputEvent.BUTTON3_DOWN_MASK
should be used instead of InputEvent.BUTTON3_MASK
,
because the values of ALT_MASK/BUTTON2_MASK
and
META_MASK/BUTTON3_MASK
overlap.
getAngleEventMask()
protected int getAction()
protected Cursor getCursor()
public boolean isHandling(int x, int y)
isHandling
in class IlvChartInteractor
public void processMouseEvent(MouseEvent event)
processMouseEvent
in class IlvChartInteractor
public void processMouseMotionEvent(MouseEvent event)
processMouseMotionEvent
in class IlvChartInteractor
protected void adjustView(Point oldPos, Point newPos, int action)
protected void startOperation(MouseEvent event)
startOperation
in class IlvChartInteractor
event
- The event that starts the interaction.IlvChartInteractor.interactionStarted(ilog.views.chart.IlvChartInteractor, java.awt.event.MouseEvent)
protected void endOperation(MouseEvent event)
endOperation
in class IlvChartInteractor
event
- 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.