Cambios Recientes - Buscar:

Información

Instalación

Documentación

Sugerencias de usuarios

 

Elements Image

La página “ElementsImage” no existe en Castellano todavía.
Puede ver la página correspondiente en Inglés (si existe) aquí debajo


 


 An interactive image.

 

 

An image is a 2D element that displays a simple image, read from disk, at given coordinates of the parent drawing or plotting panel.

 

 

Object wrapped

 

The object wrapped by this element is of the class org.opensourcephysics.displayejs.Image. 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

Image  
Position and Size  
NameDescriptionValues acceptedDefault
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. 
Size XThe size of the element in the X direction.A constant or variable of type double or int. 
Size YThe size of the element in the Y direction.A constant or variable of type double or int. 
Scale XThe scale factor for the element in the X direction.A constant or variable of type double or int. 
Scale YThe scale factor for the element in the Y direction.A constant or variable of type double or int. 
Visibility and Interaction  
NameDescriptionValues acceptedDefault
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. 
ResizableWhether the element can be resized.A boolean variable or one of the constants true or false. 
SensitivityThe size of the hot spot (in pixels).A constant or variable of type int, 0 makes the full particle the hot spot. 
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 acceptedDefault
ImageProvides a frame to display an imageFile on disk containing the image to display 
PositionPosition of the image relative to the containerJava predefined constants for position (CENTER, NORTH, …) 
RotateAngle to display the image with, relative to horizontalSexagesimal value of the angle (90º for perpendicular) 

 

 

 



Editar - Historia - Imprimir - Cambios Recientes - Buscar
Última modificación de la página el 07 septiembre 2010 a las 00h14