| java.lang.Object | |
| ↳ | casmi.graphics.element.Element |
Known Direct Subclasses
|
Known Indirect Subclasses
|
Element class. Wrap JOGL and make it easy to use.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| enableMask | |||||||||||
| enableTexture | |||||||||||
| fill | |||||||||||
| fillBlue | |||||||||||
| fillColor | |||||||||||
| fillGreen | |||||||||||
| fillRed | |||||||||||
| gradation | |||||||||||
| init | |||||||||||
| ismaterial | |||||||||||
| material | |||||||||||
| reset | |||||||||||
| rotate | |||||||||||
| rotateX | |||||||||||
| rotateY | |||||||||||
| scaleX | |||||||||||
| scaleY | |||||||||||
| scaleZ | |||||||||||
| sceneFillColor | |||||||||||
| sceneStrokeColor | |||||||||||
| stroke | |||||||||||
| strokeBlue | |||||||||||
| strokeColor | |||||||||||
| strokeGreen | |||||||||||
| strokeRed | |||||||||||
| strokeWidth | |||||||||||
| visible | |||||||||||
| x | |||||||||||
| y | |||||||||||
| z | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Adds the mosueEventCallback to the Element
| |||||||||||
Disables the texture.
| |||||||||||
Enables the texture.
| |||||||||||
Flips the Element.
| |||||||||||
Returns the color of this Element's fill.
| |||||||||||
Returns the callbacks that are added to the Element.
| |||||||||||
Gets the position of the Element.
| |||||||||||
Gets the rotation angle round on z-axis.
| |||||||||||
Gets the rotation angle round x-axis.
| |||||||||||
Gets the rotation angle round y-axis.
| |||||||||||
Gets the rotation angle round z-axis.
| |||||||||||
Gets the scale of x-axis.
| |||||||||||
Gets the scale of y-axis.
| |||||||||||
Gets the scale of z-axis.
| |||||||||||
Returns the color of this Element's stroke.
| |||||||||||
Returns the width of this Element's stroke.
| |||||||||||
Gets x-coordinate of the Element.
| |||||||||||
Gets y-coordinate of the Element.
| |||||||||||
Gets z-coordinate of the Element.
| |||||||||||
Check texture is enable or not.
| |||||||||||
Enables or disables filling geometry
| |||||||||||
Sets the color of this Element's fill.
| |||||||||||
Sets the color of this Element's fill.
| |||||||||||
Sets the color of this Element's fill.
| |||||||||||
Sets the alpha of this Element's fill.
| |||||||||||
Sets Material to this Element
| |||||||||||
Sets the position of the Element in 3D.
| |||||||||||
Sets the position of the Element in 2D.
| |||||||||||
Sets the position of the Element in 2D.
| |||||||||||
Sets the rotation angle of the Element round on z-axis.
| |||||||||||
Sets the rotation angle of the Element.
| |||||||||||
Sets the rotation angle of the Element.
| |||||||||||
Sets the rotation angle of the Element round on x-axis.
| |||||||||||
Sets the rotation angle of the Element round on y-axis.
| |||||||||||
Sets the rotation angle of the Element round on z-axis.
| |||||||||||
Sets the scale of the Element
| |||||||||||
Sets the scale of the Element
| |||||||||||
Sets the scale of the Element of x-axis direction.
| |||||||||||
Sets the scale of the Element of y-axis direction.
| |||||||||||
Sets the scale of the Element of z-axis direction.
| |||||||||||
Enables or disables drawing the stroke (outline)
| |||||||||||
Sets the color of this Element's stroke.
| |||||||||||
Sets the color of this Element's stroke.
| |||||||||||
Sets the color of this Element's stroke.
| |||||||||||
Sets the alpha of this Element's stroke.
| |||||||||||
Sets the width of this Element's stroke.
| |||||||||||
Modify visibility of the Element.
| |||||||||||
Sets x-coordinate of the Element.
| |||||||||||
Sets y-coordinate of the Element.
| |||||||||||
Sets z-coordinate of the Element.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
casmi.graphics.object.Renderable
| |||||||||||
From interface
casmi.graphics.object.Resettable
| |||||||||||
Adds the mosueEventCallback to the Element
| callback | mouseEventCallback |
|---|
Disables the texture.
Enables the texture.
Flips the Element. You can choose the way of flip with 0 or 1.
| mode | You can choose the way of flip with 0 or 1. If you choose 0, the Element flips round on y-axis. If you choose 1, the Element flips round on x-axis. If you choose other numbers, the Element flips round on z-axis. |
|---|
Returns the color of this Element's fill.
Returns the callbacks that are added to the Element.
Gets the position of the Element.
Gets the rotation angle round on z-axis.
Gets the rotation angle round x-axis.
Gets the rotation angle round y-axis.
Gets the rotation angle round z-axis.
Gets the scale of x-axis.
Gets the scale of y-axis.
Gets the scale of z-axis.
Returns the color of this Element's stroke.
Returns the width of this Element's stroke.
Gets x-coordinate of the Element.
Gets y-coordinate of the Element.
Gets z-coordinate of the Element.
Check texture is enable or not.
Enables or disables filling geometry
Sets the color of this Element's fill.
| colorSet | The color of the Element's fill. |
|---|---|
| alpha | The alpha of the Element's fill. |
Sets the color of this Element's fill.
| colorSet | The color of the Element's fill. |
|---|
Sets the color of this Element's fill.
| color | The color of the Element's fill. |
|---|
Sets the alpha of this Element's fill.
| alpha | The color of the Element's fill. |
|---|
Sets Material to this Element
| m | The Material of this Element. |
|---|
Sets the position of the Element in 3D.
| x | x-coordinate |
|---|---|
| y | y-coordinate |
| z | z-coordinate |
Sets the position of the Element in 2D.
| v | the vertex of the position of the Element |
|---|
Sets the position of the Element in 2D.
| x | x-coordinate |
|---|---|
| y | y-coordinate |
Sets the rotation angle of the Element round on z-axis.
| angle | The angle of rotation |
|---|
Sets the rotation angle of the Element.
| x | The rotation angle round x-axis |
|---|---|
| y | The rotation angle round x-axis |
| z | The rotation angle round x-axis |
Sets the rotation angle of the Element. This method wraps the glRotate method.
| angle | The angle of rotation |
|---|---|
| x | The rate of rotation angle round x-axis |
| y | The rate of rotation angle round x-axis |
| z | The rate of rotation angle round x-axis |
Sets the rotation angle of the Element round on x-axis.
| angle | The angle of rotation round on x-axis |
|---|
Sets the rotation angle of the Element round on y-axis.
| angle | The angle of rotation round on y-axis |
|---|
Sets the rotation angle of the Element round on z-axis.
| angle | The angle of rotation round on z-axis |
|---|
Sets the scale of the Element
| scale | The scale of the Element |
|---|
Sets the scale of the Element
| scaleX | The scale of the Element of x-axis direction |
|---|---|
| scaleY | The scale of the Element of y-axis direction |
| scaleZ | The scale of the Element of z-axis direction |
Sets the scale of the Element of x-axis direction.
| scaleX | The scale of the Element of x-axis direction |
|---|
Sets the scale of the Element of y-axis direction.
| scaleY | The scale of the Element of y-axis direction |
|---|
Sets the scale of the Element of z-axis direction.
| scaleZ | The scale of the Element of z-axis direction |
|---|
Enables or disables drawing the stroke (outline)
Sets the color of this Element's stroke.
| color | The color of the Element's stroke. |
|---|
Sets the color of this Element's stroke.
| colorSet | The colorSet of the Element's stroke. |
|---|
Sets the color of this Element's stroke.
| colorSet | The colorSet of the Element's stroke. |
|---|---|
| alpha | The alpha of the Element's stroke. |
Sets the alpha of this Element's stroke.
| alpha | The color of the Element's stroke. |
|---|
Sets the width of this Element's stroke.
| strokeWidth | The width of the Element's stroke. |
|---|
Modify visibility of the Element.
| visible | true to make the Element visible, false to
hide the Element.
|
|---|
Sets x-coordinate of the Element.
| x | x-coordinate to set. |
|---|
Sets y-coordinate of the Element.
| y | y-coordinate to set. |
|---|
Sets z-coordinate of the Element.
| z | z-coordinate to set. |
|---|