ucar.unidata.idv.control
Class TextDisplayControl.PolyGlyph

java.lang.Object
  extended by ucar.unidata.idv.control.TextDisplayControl.PolyGlyph
Enclosing class:
TextDisplayControl

public static class TextDisplayControl.PolyGlyph
extends Object

Class PolyGlyph


Constructor Summary
TextDisplayControl.PolyGlyph()
          Default Constructor
TextDisplayControl.PolyGlyph(float width, Color color)
          Create a new PolyGlyph of the given width and color.
 
Method Summary
 void addPoint(int x, int y)
          Add a point
 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(Graphics g)
          Paint this glyph
 void setColor(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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextDisplayControl.PolyGlyph

public TextDisplayControl.PolyGlyph()
Default Constructor


TextDisplayControl.PolyGlyph

public TextDisplayControl.PolyGlyph(float width,
                                    Color color)
Create a new PolyGlyph of the given width and color.

Parameters:
width - width of glyph
color - color of glyph
Method Detail

paint

public void paint(Graphics g)
Paint this glyph

Parameters:
g - graphics to paint on

addPoint

public void addPoint(int x,
                     int y)
Add a point

Parameters:
x - x position
y - y position

setColor

public void setColor(Color value)
Set the Color property.

Parameters:
value - The new value for Color

getColor

public Color getColor()
Get the Color property.

Returns:
The Color

setWidth

public void setWidth(float value)
Set the Width property.

Parameters:
value - The new value for Width

getWidth

public float getWidth()
Get the Width property.

Returns:
The Width

setXPoints

public void setXPoints(int[] value)
Set the X points property.

Parameters:
value - set of x values

getXPoints

public int[] getXPoints()
Get the XPoints property.

Returns:
The XPoints

setYPoints

public void setYPoints(int[] value)
Set the YPoints property.

Parameters:
value - The new value for YPoints

getYPoints

public int[] getYPoints()
Get the YPoints property.

Returns:
The YPoints

setNPoints

public void setNPoints(int value)
Set the NPoints property.

Parameters:
value - The new value for NPoints

getNPoints

public int getNPoints()
Get the NPoints property.

Returns:
The NPoints