| java.lang.Object | ||
| ↳ | casmi.graphics.element.Element | |
| ↳ | casmi.graphics.element.Line | |
Line class. Wrap JOGL and make it easy to use.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | LINES | ||||||||||
| int | LINES_3D | ||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
casmi.graphics.element.Element
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new Line object
| |||||||||||
Creates a new Line object using coordinates for the first and second point.
| |||||||||||
Creates a new Line object using coordinates for the first and second point.
| |||||||||||
Creates a new Line object using coordinates for the first and second point.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Gets coordinates of the point.
| |||||||||||
Sets the coordinates for the first or second point.
| |||||||||||
Sets the coordinates for the first and second point.
| |||||||||||
Sets the coordinates for the first or second point.
| |||||||||||
Sets the coordinates for the first and second point.
| |||||||||||
Sets the coordinates for the first and second point.
| |||||||||||
Sets the color of the first or second point for gradation.
| |||||||||||
Sets the color of the first or second point for gradation.
| |||||||||||
Sets the parameter for the dashed line.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
casmi.graphics.element.Element
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
casmi.graphics.object.Renderable
| |||||||||||
From interface
casmi.graphics.object.Resettable
| |||||||||||
Creates a new Line object
Creates a new Line object using coordinates for the first and second point.
| x1 | The x-coordinates for the first point. |
|---|---|
| y1 | The y-coordinates for the first point. |
| x2 | The x-coordinates for the second point. |
| y2 | The y-coordinates for the second point. |
Creates a new Line object using coordinates for the first and second point.
| v1 | The coordinates for the first point. |
|---|---|
| v2 | The coordinates for the second point. |
Creates a new Line object using coordinates for the first and second point.
| x1 | The x-coordinates for the first point. |
|---|---|
| y1 | The y-coordinates for the first point. |
| z1 | The z-coordinates for the first point. |
| x2 | The x-coordinates for the second point. |
| y2 | The y-coordinates for the second point. |
| z2 | The z-coordinates for the second point. |
Gets coordinates of the point.
| index | The index of the point; if the index is 0, the point is first. |
|---|
Sets the coordinates for the first or second point.
| index | choose the point; if index is true, the point is first. |
|---|---|
| x | The x-coordinate of the first or second control point. |
| y | The y-coordinate of the first or second control point. |
Sets the coordinates for the first and second point.
| x1 | The x-coordinates for the first point. |
|---|---|
| y1 | The y-coordinates for the first point. |
| x2 | The x-coordinates for the second point. |
| y2 | The y-coordinates for the second point. |
Sets the coordinates for the first or second point.
| index | choose the point; if index is true, the point is first. |
|---|---|
| x | The x-coordinate of the first or second control point. |
| y | The y-coordinate of the first or second control point. |
| z | The z-coordinate of the first or second control point. |
Sets the coordinates for the first and second point.
| x1 | The x-coordinates for the first point. |
|---|---|
| y1 | The y-coordinates for the first point. |
| z1 | The z-coordinates for the first point. |
| x2 | The x-coordinates for the second point. |
| y2 | The y-coordinates for the second point. |
| z2 | The z-coordinates for the second point. |
Sets the coordinates for the first and second point.
| v1 | The coordinates for the first anchor point. |
|---|---|
| v2 | The coordinates for the first control point. |
Sets the color of the first or second point for gradation.
| index | The index of the point; if index is 0, the point is first. |
|---|---|
| color | The color of the first or second point. |
Sets the color of the first or second point for gradation.
| index | The index of the point; if index is 0, the point is first. |
|---|---|
| colorSet | The colorSt of the first or second point. |
Sets the parameter for the dashed line.
| length | The length of the dashed lines. |
|---|---|
| interval | The interval of the dashed lines. |