Recent Changes - Search:

Information Foreword What is EJS? Demos/Examples Credits Links Webcasts Installation Download & Install EJS Workspaces Running EJS Conditions of Use Documentation EJS Console EJS Interface Description Panel Model Panel View Panel Deployment Elements Reference User Feedback English | Spanish | ? View Edit History Print PDF ## Text (old) An interactive text. ## Object wrapped The object wrapped by this element is of the class org.opensourcephysics.displayejs.Text. The class has been designed to control all of its features through properties, so there is no need to use directly any of the object methods. ## Useful methods (This list deliberately left empty.) ## Properties
Text
Position and Size
Name | Description | Values accepted | Default
X | The X coordinate for the element. | A constant or variable of type double or int. |
Y | The Y coordinate for the element. | A constant or variable of type double or int. |
Visibility and Interaction
Name | Description | Values accepted | Default
Visible | The visibility of the element. | A boolean variable or one of the constants true or false. |
Draggable | Whether the element can be moved. | 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 dragged. | 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 mouse enters the element. | The Java code to invoke for the action. |
On Exit | The action to invoke when the mouse leaves the element. | The Java code to invoke for the action. |
Graphical Aspect
Name | Description | Values accepted | Default
Text | Text to display | Any string valid in Java |
Position | Position of the text relative to container window | Java predefined constants (CENTERED, NORTH, SOUTH, …) |
Rotate | Rotation of the text respect horizontal position | Rotation angle in sexagesimal degrees (90º for perpendicular) |
Fill color | Color to fill in the text | An integer codifying in binary 8 bits per color channel |
Font | font to display the text | Available fonts of the underlying operating system |

Edit - History - Print - Recent Changes - Search
Page last modified on June 09, 2009, at 06:37 PM