Element: Symbol.
Text: A two-dimensional control symbol.
Description: A Symbol is a two-dimensional drawing element that draws a standard control symbol which can include the display of a text and or a value. Interaction includes positioning and changing the displayed value.
Gallery of different existing symbols.
Table of properties |
||
Name | Description | Values accepted |
Position and Size | ||
X | The X coordinate of the base position of the element. | Any constant or variable of type double or int. |
Y | The Y coordinate of the base position of the element. | Any constant or variable of type double or int. |
Size X | The size of the element in the X direction. | Any constant or variable of type double or int. |
Size Y | The size of the element in the Y direction. | Any constant or variable of type double or int. |
Angle | The (counter-clockwise) rotation angle to apply to the element. | A constant or variable of type double for an angle in radians, or a constant or variable of type int for an angle in degrees. |
Value |
||
Value | The value displayed by the element. | Any constant or variable of type double or int. |
Show Value | Whether to display the value. | A boolean variable or one of the constants true or false. |
Increment | The base increment used to change the value when dragging on it. | Any constant or variable of type double or int. |
Format | The format for the visualization of the value. | Any value acepted by the class java.text.DecimalFormat. See additional info. The default format is 0.000. |
Font | The font used for the text displayed by the element. | An Object variable of the class java.awt.Font
or a set of family, style and size, separated by commas. The style
must be one of plain,
bold, italic, bold | italic. Example: Monospaced,italic,18.
The default value is decided by the system. |
Color | The color used to draw the value. | An Object variable of the class java.awt.Color
or one of the predefined colors: black,
blue, cyan, darkGray, gray, green, lightGray, magenta, orange, pink,
red, white, yellow.
A color can also be specified providing its integer RGB coordinates (between 0 and 255), plus an optional transparency coordinate. The default value is decided by the system. |
Input |
||
Enabled | Whether the displayed value can be changed interactively. | A boolean variable or one of the constants true or false. |
Movable | Whether the element can be repositioned. | A boolean variable or one of the constants true or false. |
On Press | The action to invoke when the element is pressed. | The Java code to invoke for the action. |
On Drag | The action to invoke when the element is moved. | The Java code to invoke for the action. |
On Release | The action to invoke when the element is released. | The Java code to invoke for the action. |
On Enter | The action to invoke when the pointer enters the element. | The Java code to invoke for the action. |
On Exit | The action to invoke when the pointer leaves the element. | The Java code to invoke for the action. |
Graphical Aspect | ||
Text | The text displayed by the element (if the type allows it). | Any constant or variable of type String. |
Type | The type of the symbol. | One of the following constants. They
correspond to the types shown in the picture above (from left to
right, first row first):
Integer constants and variables are also accepted, using any of the values indicated in the parentheses above. This allows changing the position in run-time. |
Filled | Whether the element is filled with colors (see inside and outside colors below). | A boolean variable or one of the constants true or false. |
Line Color | The color used for the lines of the element. | An Object variable of the class java.awt.Color
or one of the predefined colors: black,
blue, cyan, darkGray, gray, green, lightGray, magenta, orange, pink,
red, white, yellow.
A color can also be specified providing its integer RGB coordinates (between 0 and 255), plus an optional transparency coordinate. The default value is decided by the system. |
Stroke | The thickness for the lines of the element. | Any constant or variable of type double
or int. The default value is 1. Object variables of the class java.awt.Stroke are also accepted. |
Inside Color | The color used to fill the inner part of the symbol. |
See the values for the Line Color property. |
Outside Color | The color used to fill the outer part of the symbol. |
See the values for the Line Color property. |