Cambios Recientes - Buscar:

Information

Installation

Documentation

Feedback

 

 

Statistics

 

ElementsText

Text: 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

 

Position and Size
NameDescriptionValues accepted
XThe X coordinate for the element.A constant or variable of type double or int.
YThe Y coordinate for the element.A constant or variable of type double or int.
Visibility and Interaction
NameDescriptionValues accepted
VisibleThe visibility of the element.A boolean variable or one of the constants true or false.
DraggableWhether the element can be moved.A boolean variable or one of the constants true or false.
On PressThe action to invoke when the element is pressed.The Java code to invoke for the action.
On DragThe action to invoke when the element is dragged.The Java code to invoke for the action.
On ReleaseThe action to invoke when the element is released.The Java code to invoke for the action.
On EnterThe action to invoke when the mouse enters the element.The Java code to invoke for the action.
On ExitThe action to invoke when the mouse leaves the element.The Java code to invoke for the action.
Graphical Aspect
NameDescriptionValues accepted
TextText to displayAny string valid in Java
PositionPosition of the text relative to container windowJava predefined constants (CENTERED, NORTH, SOUTH, ...)
RotateRotation of the text respect horizontal positionRotation angle in sexagesimal degrees (90º for perpendicular)
Fill colorColor to fill in the textAn integer codifying in binary 8 bits per color channel
Fontfont to display the textAvailable fonts of the underlying operating system

 

Editar - Historia - Imprimir - Cambios Recientes - Buscar
Última modificación de la página el 28 August 2008 a las 17h00