public static class TextDisplayControl.PolyGlyph
extends java.lang.Object
Constructor and Description |
---|
PolyGlyph()
Default Constructor
|
PolyGlyph(float width,
java.awt.Color color)
Create a new PolyGlyph of the given width and color.
|
Modifier and Type | Method and Description |
---|---|
void |
addPoint(int x,
int y)
Add a point
|
java.awt.Color |
getColor()
Get the Color property.
|
int |
getNPoints()
Get the NPoints property.
|
float |
getWidth()
Get the Width property.
|
int[] |
getXPoints()
Get the XPoints property.
|
int[] |
getYPoints()
Get the YPoints property.
|
void |
paint(java.awt.Graphics g)
Paint this glyph
|
void |
setColor(java.awt.Color value)
Set the Color property.
|
void |
setNPoints(int value)
Set the NPoints property.
|
void |
setWidth(float value)
Set the Width property.
|
void |
setXPoints(int[] value)
Set the X points property.
|
void |
setYPoints(int[] value)
Set the YPoints property.
|
public PolyGlyph()
public PolyGlyph(float width, java.awt.Color color)
width
- width of glyphcolor
- color of glyphpublic void paint(java.awt.Graphics g)
g
- graphics to paint onpublic void addPoint(int x, int y)
x
- x positiony
- y positionpublic void setColor(java.awt.Color value)
value
- The new value for Colorpublic java.awt.Color getColor()
public void setWidth(float value)
value
- The new value for Widthpublic float getWidth()
public void setXPoints(int[] value)
value
- set of x valuespublic int[] getXPoints()
public void setYPoints(int[] value)
value
- The new value for YPointspublic int[] getYPoints()
public void setNPoints(int value)
value
- The new value for NPointspublic int getNPoints()