public abstract class IlvCompiledSymbolRotationInteractor extends IlvCompiledSymbolRangeInteractor
Modifier and Type | Field and Description |
---|---|
static String |
BOTTOM_CENTER
The rotation center is on the center of the bottom side of the bounding box
either of the base or of the rotating part.
|
static String |
BOTTOM_LEFT
The rotation center is on the bottom left corner of the bounding box either
of the base or of the rotating part.
|
static String |
BOTTOM_RIGHT
The rotation center is on the bottom right corner of the bounding box
either of the base or of the rotating part.
|
static String |
CENTER
The rotation center is the center of the bounding box either of the base or
of the rotating part.
|
static String |
LEFT_CENTER
The rotation center is on the center of the left side of the bounding box
either of the base or of the rotating part.
|
static String |
RIGHT_CENTER
The rotation center is on the center of the right side of the bounding box
either of the base or of the rotating part.
|
static String |
TOP_CENTER
The rotation center is on the center of the top side of the bounding box
either of the base or of the rotating part.
|
static String |
TOP_LEFT
The rotation center is on the top left corner of the bounding box either of
the base or of the rotating part.
|
static String |
TOP_RIGHT
The rotation center is on the top right corner of the bounding box either
of the base or of the rotating part.
|
changeSupport, enabled
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
Constructor and Description |
---|
IlvCompiledSymbolRotationInteractor()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
actionPerformed(IlvCompositeActionEvent cae)
Computes the angle made by the mouse pointer and the start angle, relatively to
the rotation center.
|
double |
getEndAngle()
Returns the end angle allowed for the rotation.
|
String |
getRotationCenter()
Returns the position of the rotation center.
|
double |
getStartAngle()
Returns the start angle.
|
IlvMouseGesture[] |
getSupportedMouseGestures()
Returns the mouse gesture supported by this interactor.
|
boolean |
isRotationCenterRelativeToBase()
Indicates whether the rotation center is relative to the base (the first child
of the composite parent of the rotating part) or relative to the rotating
part itself.
|
void |
setEndAngle(double endAngle)
Sets the ending angle allowed for the rotation.
|
void |
setRotationCenter(String rotationCenter)
Sets the position of the rotation center.
|
void |
setRotationCenterRelativeToBase(boolean centerRelativeToBase)
Indicates whether the rotation center is relative to the base (the first
child of the composite parent of the rotating part) or relative to the
rotating part itself.
|
void |
setStartAngle(double start)
Sets the start angle that corresponds to the minimum value.
|
applySet, applyStep, getMaximum, getMinimum, getParameterValue, getStep, setMaximum, setMinimum, setParameterValue, setStep
actionPerformed, getEvent, getLogger, getParameterToModify, setParameterToModify
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public static final String CENTER
public static final String TOP_CENTER
public static final String BOTTOM_CENTER
public static final String LEFT_CENTER
public static final String RIGHT_CENTER
public static final String TOP_LEFT
public static final String TOP_RIGHT
public static final String BOTTOM_LEFT
public static final String BOTTOM_RIGHT
public IlvCompiledSymbolRotationInteractor()
public IlvMouseGesture[] getSupportedMouseGestures()
public double getEndAngle()
public void setEndAngle(double endAngle)
endAngle
- The end angle in degrees.public double getStartAngle()
setStartAngle(double start)
public void setStartAngle(double start)
start
- The start angle in degrees.protected void actionPerformed(IlvCompositeActionEvent cae)
actionPerformed
in class IlvCompiledSymbolInteractor
cae
- The composite action event.IlvCompiledSymbolInteractor.actionPerformed(IlvCompositeActionEvent)
public boolean isRotationCenterRelativeToBase()
true
if the rotation center is relative to the base.public void setRotationCenterRelativeToBase(boolean centerRelativeToBase)
public String getRotationCenter()
public void setRotationCenter(String rotationCenter)
rotationCenter
- It can be one of the following values:© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.