Recent Changes - Search:

Information

Installation

Documentation

ElementsShape2Dejss

Properties

Position and Size
NameDescriptionValues acceptedDefault
XThe X coordinate for the element.A constant or variable.-
YThe Y coordinate for the element.A constant or variable.-
PositionThe double[] array with the coordinates of the shape.A double array.-
PixelPositionThe double[] array with the coordinates of the shape.A double array.-
SizeXThe size of the element in the X direction.A constant or variable.-
SizeYThe size of the element in the Y direction.A constant or variable.-
SizeThe double[] array with the size of the shape in each direction.A double array.-
PixelSizeWhether the size of the element is given in pixels. By default (i.e. false) the size of the element is relative to its parent panel coordinate system.A boolean variable or one of the constants true or false.-
RotateThe rotation for the element.A constant or variable.-
TransformationThe transformation to apply to this element.An affine transform, a constant or variable, a double[] or an Object. About 2D transformations-
Visibility and Interaction
NameDescriptionValues acceptedDefault
VisibilityThe visibility of the element.A boolean variable or one of the constants true or false.-
MeasuredWhether the element affects its parent panel's autoscaling.A boolean variable or one of the constants true or false.-
EnabledPositionWhether the element affects its parent panel's autoscaling.A boolean variable or one of the constants true or false.-
MoveGroupWhether the element affects its parent panel's autoscaling.A boolean variable or one of the constants true or false.-
EnabledGroupWhether the element can be moved.A boolean variable or one of the constants true or false.-
ResizeGroupWhether dragging the element affects its group.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.-
OnEnterThe action to invoke when the mouse enters the element.The JavaScript code to invoke for the action.-
OnExitThe action to invoke when the mouse leaves the element.The JavaScript code to invoke for the action.-
OnPressThe action to invoke when the element is pressed.The JavaScript code to invoke for the action.-
OnDragThe action to invoke when the element is dragged.The JavaScript code to invoke for the action.-
OnDoubleClickThe action to invoke when double-clicked.The JavaScript code to invoke for the action.-
Graphical Aspect
NameDescriptionValues acceptedDefault
ShapeTypeThe drawing style for the element.Use the editor provided or read about particle styles. "NONE", "ELLIPSE", "RECTANGLE", "ROUND_RECTANGLE", "WHEEL""ELLIPSE"
CornerRadiusCorner radius.Use the editor provided or read about particle styles.-
RelativePositionRelative position.Use the editor provided or read about particle styles. "CENTERED", "NORTH", "SOUTH", "EAST", "WEST", "NORTH_EAST", "NORTH_WEST", "SOUTH_EAST", "SOUTH_WEST""CENTERED"
Line ColorThe color used for the lines of the element.Use the editor provided or read about colors.-
Line WidthThe thickness of the lines of the element.A constant or variable of type double or int indicating the thickness.1
Draw LinesWhether to draw the lines.A boolean variable or one of the constants true or false.-
Fill ColorThe color used to fill the element.Use the editor provided or read about colors. The special value null draws a hollow element.-
Draw FillWhether to fill the element.A boolean variable or one of the constants true or false.-
AttributesObject.Object. 
Edit - History - Print - Recent Changes - Search
Page last modified on October 23, 2023, at 07:12 AM