public class PolyLine
extends java.lang.Object
IFloatingLineSet| Constructor | Description |
|---|---|
PolyLine() |
|
PolyLine(PolyLine p) |
Copy Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Enumeration |
elements() |
Returns the list of all coordinates that define the poly-line.
|
java.awt.Color |
getColor() |
Returns the color of the poly-line.
|
int |
getLineStyle() |
Returns the line style of the poly-line.
|
java.util.Vector |
getPoints() |
Returns a Vector containing all the Point_3D / Point_2D objects that define the poly-line.
|
int |
getThickness() |
Returns the thickness of the poly-line.
|
boolean |
isArrowAtEndPointVisible() |
Returns whether the arrow at end point of poly-line is visible.
|
boolean |
isArrowAtStartPointVisible() |
Returns whether the arrow at start point of poly-line is visible.
|
boolean |
isFillArea() |
Returns whether the poly-line is filled.
|
static PolyLine |
read(java.io.DataInput in,
int version) |
Created for internal use only
|
void |
set(java.util.Enumeration e,
java.awt.Color c) |
Defines the coordinates for the poly-line.
|
void |
set(java.util.Enumeration e,
java.awt.Color color,
int thickness,
int style,
boolean fillArea,
boolean startArrow,
boolean endArrow) |
Defines the coordinates for the poly-line.
|
void |
setArrowAtEndPointVisible(boolean state) |
Sets whether the arrow at end point of poly-line is visible.
|
void |
setArrowAtStartPointVisible(boolean state) |
Sets whether the arrow at start point of poly-line is visible.
|
void |
setColor(java.awt.Color c) |
Sets the color of the poly-line.
|
void |
setFillArea(boolean state) |
Sets whether the poly-line is filled.
|
void |
setLineStyle(int s) |
Sets the line style of the poly-line.
|
void |
setThickness(int t) |
Sets the thickness of the poly-line.
|
void |
write(java.io.DataOutput out) |
Created for internal use only
|
public PolyLine()
public PolyLine(PolyLine p)
p - The input PolyLine object.public final java.awt.Color getColor()
public final void setColor(java.awt.Color c)
c - The Color object.public final boolean isFillArea()
public final void setFillArea(boolean state)
state - The new state.public final int getThickness()
public final void setThickness(int t)
t - The thickness.public final int getLineStyle()
public final void setLineStyle(int s)
s - The line style.public final boolean isArrowAtStartPointVisible()
public final void setArrowAtStartPointVisible(boolean state)
state - The new state.public final boolean isArrowAtEndPointVisible()
public final void setArrowAtEndPointVisible(boolean state)
state - The new state.public final java.util.Enumeration elements()
public final void set(java.util.Enumeration e,
java.awt.Color c)
public final void set(java.util.Enumeration e,
java.awt.Color color,
int thickness,
int style,
boolean fillArea,
boolean startArrow,
boolean endArrow)
e - The list of Point_3D objects that define the poly-line. / The list of Point_2D
objects which relative to the canvas (0.0 to 1.0, Lower-left corner is 0.0).color - The color of the poly-line.thickness - The thickness of the poly-line.style - The line style of the poly-line.fillArea - The state of fill area.startArrow - The state of start arrow.endArrow - The state of end arrow.Point_3D,
Point_2Dpublic final java.util.Vector getPoints()
public final void write(java.io.DataOutput out)
throws java.io.IOException
java.io.IOExceptionpublic static PolyLine read(java.io.DataInput in, int version) throws java.io.IOException
java.io.IOException