public enum KnobType extends java.lang.Enum<KnobType> implements ValueEnum
DrawItem.knobs
array. Each specified
knobType will enable some UI allowing the user to manipulate the DrawItem directly. NOTE: Not all knob types
are supported by each DrawItem type. Refer to the DrawItem type's knobs
attribute documentation for a list of the supported knob
types.
Enum Constant and Description |
---|
CONTROLPOINT1
Display a draggable control knob along with a DrawLine indicating the angle between controlPoint1 and the startPoint.
|
CONTROLPOINT2
Display a draggable control knob along with a DrawLine indicating the angle between controlPoint2 and the endPoint.
|
ENDPOINT
Control knob to manipulate
DrawLine.endPoint . |
MOVE
Display a control knob for moving the item around.
|
RESIZE
Display up to 8 control knobs at the corners specified by
DrawItem.resizeKnobPoints , allowing the user to
drag-resize the item. |
ROTATE
Display a rotation knob above the top resize knob, allowing the user to rotate the item.
|
STARTPOINT
Control knob to manipulate
DrawLine.startPoint . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue() |
static KnobType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static KnobType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KnobType RESIZE
DrawItem.resizeKnobPoints
, allowing the user to
drag-resize the item. See also DrawItem.cornerResizeKnob
and DrawItem.sideResizeKnob
.
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "resize".
public static final KnobType MOVE
DrawItem.moveKnobPoint
and DrawItem.moveKnobOffset
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "move".
public static final KnobType STARTPOINT
DrawLine.startPoint
.
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "startPoint".
public static final KnobType ENDPOINT
DrawLine.endPoint
.
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "endPoint".
public static final KnobType CONTROLPOINT1
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "controlPoint1".
public static final KnobType CONTROLPOINT2
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "controlPoint2".
public static final KnobType ROTATE
DrawItem.rotateKnob
.
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "rotate".
public static KnobType[] values()
for (KnobType c : KnobType.values()) System.out.println(c);
public static KnobType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null