public class IlvRotationSymbolInteractor extends IlvRangeSymbolInteractor
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 |
---|
IlvRotationSymbolInteractor()
Default constructor, creates the interactor and set default value for start angle, end angle,
minimum and maximum value to 0.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
Computes the angle made by mouse pointer and start angle, relatively to 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 if 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)
Set the position of the rotation center.
|
void |
setRotationCenterRelativeToBase(boolean centerRelativeToBase)
Indicates if the rotation center should be 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)
Set the start angle that corresponds to the minimum value.
|
applyStep, getMaximum, getMinimum, getStep, setMaximum, setMinimum, setStep
getCSSValue, getLogger, getParameterToModify, getParameterType, 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 IlvRotationSymbolInteractor()
public IlvMouseGesture[] getSupportedMouseGestures()
getSupportedMouseGestures
in class IlvSymbolInteractor
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.public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
actionPerformed
in class IlvSymbolInteractor
public boolean isRotationCenterRelativeToBase()
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.