|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.visad.display.Displayable
ucar.visad.display.DisplayableData
ucar.visad.display.LineDrawing
public class LineDrawing
Provides support for line drawings. The color and width of the lines can be controlled using the methods of this class.
Instances of this class have the following bound properties:
| Name | Type | Access | Default | Description |
|---|---|---|---|---|
| color | java.awt.Color | set/get | Color.white | The color of rendered lines or points. |
| lineWidth | float | set/get | 1.0f | The width of rendered lines. |
| lineStyle | int | set/get | 0 | The style of rendered lines. |
| pointSize | float | set/get | 1.0f | The size of rendered points. |
| Field Summary | |
|---|---|
static String |
COLOR
The name of the color property. |
static String |
LINE_STYLE
The name of the line-style property. |
static String |
LINE_WIDTH
The name of the line-width property. |
static String |
POINT_SIZE
The name of the point-size property. |
| Fields inherited from class ucar.visad.display.DisplayableData |
|---|
MANIPULABLE, VISIBLE |
| Fields inherited from class ucar.visad.display.Displayable |
|---|
DISPLAY, parent, SCALAR_MAP_SET |
| Constructor Summary | |
|---|---|
LineDrawing(LineDrawing that)
Constructs from another instance. |
|
LineDrawing(String name)
Constructs an instance with the specified name |
|
| Method Summary | |
|---|---|
Color |
getColor()
Gets the current java.awt.Color associated with this LineDrawing |
int |
getLineStyle()
Gets the current line style associated with this LineDrawing |
float |
getLineWidth()
Gets the current line width associated with this LineDrawing |
float |
getPointSize()
Gets the point size associated with this LineDrawing |
void |
setColor(Color color)
Sets the color of the lines for this Displayable. |
void |
setHSV(double hue,
double saturation,
double value)
Sets the HSV values to control the color of this Displayable. |
void |
setHSV(float[] hsv)
Sets the HSV values to control the color of this Displayable. |
void |
setLineStyle(int lineStyle)
Sets the style of lines in this Displayable. |
void |
setLineWidth(float lineWidth)
Sets the width of lines in this Displayable. |
void |
setPointSize(float pointSize)
Sets the size of points in this Displayable. |
void |
setRGB(double red,
double green,
double blue)
Sets the RGB values to control the color of this Displayable. |
void |
setRGB(float[] rgb)
Sets the RGB values to control the color of this Displayable. |
void |
setRGBA(double red,
double green,
double blue,
double alpha)
Sets the RGBA values to control the color of this Displayable. |
void |
setRGBA(float[] rgba)
Sets the RGBA values to control the color of this Displayable. |
| Methods inherited from class ucar.visad.display.DisplayableData |
|---|
addAction, cloneForDisplay, dataChange, destroy, getActive, getAnimationSet, getData, getDataRenderer, getName, hasData, hasDataObject, isManipulable, isPickable, myAddConstantMaps, myAddDataReferences, myRemoveDataReferences, removeAction, setActive, setData, setDataReference, setManipulable, setPickable, setPointMode, setUseFastRendering, setVisible, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static String COLOR
public static String LINE_WIDTH
public static String LINE_STYLE
public static String POINT_SIZE
| Constructor Detail |
|---|
public LineDrawing(String name)
throws VisADException,
RemoteException
name - name for the instance
VisADException - Can't create the necessary VisAD object
RemoteException - Can't create the necessary remote object
public LineDrawing(LineDrawing that)
throws VisADException,
RemoteException
that - The other instance.
VisADException - Can't create the necessary VisAD object
RemoteException - Can't create the necessary remote object| Method Detail |
|---|
public void setRGB(double red,
double green,
double blue)
throws VisADException,
RemoteException
red - red value (0 - 1)green - green value (0 - 1)blue - blue value (0 - 1)
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setRGBA(double red,
double green,
double blue,
double alpha)
throws VisADException,
RemoteException
red - red value (0 - 1)green - green value (0 - 1)blue - blue value (0 - 1)alpha - alpha value (0 - 1)
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setRGB(float[] rgb)
throws VisADException,
RemoteException
rgb - array of red, green, blue intesities (all 0 - 1).
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setRGBA(float[] rgba)
throws VisADException,
RemoteException
rgba - array of red, green, blue, alpha intesities (all 0 - 1).
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setHSV(double hue,
double saturation,
double value)
throws VisADException,
RemoteException
hue - hue value (red=0, green=120, blue=240).saturation - saturation value (0 - 1).value - brightness value (0 - 1).
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setHSV(float[] hsv)
throws VisADException,
RemoteException
hsv - array of hue (red=0, green=120, blue=240),
saturation (0-1), and brightness (0-1) values.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setColor(Color color)
throws VisADException,
RemoteException
setColor in class Displayablecolor - color for the line.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setLineWidth(float lineWidth)
throws VisADException,
RemoteException
setLineWidth in class DisplayableDatalineWidth - Width of lines (1 = normal)
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setLineStyle(int lineStyle)
throws VisADException,
RemoteException
lineStyle - style of line
VisADException - VisAD failure.
RemoteException - Java RMI failure.GraphicsModeControl
public void setPointSize(float pointSize)
throws VisADException,
RemoteException
setPointSize in class DisplayableDatapointSize - Size of points (2 = normal)
VisADException - VisAD failure.
RemoteException - Java RMI failure.public Color getColor()
public float getLineWidth()
getLineWidth in class DisplayableDatapublic int getLineStyle()
GraphicsModeControlpublic float getPointSize()
getPointSize in class DisplayableData
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||