public class LineDrawing extends DisplayableData
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. |
DisplayableData.DragAdapter| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COLOR
The name of the color property.
|
static java.lang.String |
LINE_STYLE
The name of the line-style property.
|
static java.lang.String |
LINE_WIDTH
The name of the line-width property.
|
static java.lang.String |
POINT_SIZE
The name of the point-size property.
|
MANIPULABLE, renderer, VISIBLEDISPLAY, parent, SCALAR_MAP_SET| Constructor and Description |
|---|
LineDrawing(LineDrawing that)
Constructs from another instance.
|
LineDrawing(java.lang.String name)
Constructs an instance with the specified name
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.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(java.awt.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.
|
addAction, cloneForDisplay, dataChange, destroy, getActive, getAnimationSet, getData, getDataRenderer, getName, hasData, hasDataObject, isManipulable, isPickable, myAddConstantMaps, myAddDataReferences, myRemoveDataReferences, removeAction, setActive, setData, setDataReference, setDragAdapter, setManipulable, setPickable, setPointMode, setUseFastRendering, setVisible, showme, toStringaddConstantMap, addConstantMaps, addDataReferences, addPropertyChangeListener, addPropertyChangeListener, addRefsInvoked, addScalarMap, addScalarMaps, applyColorUnit, applyDisplayUnit, checkUnit, combineConstantMaps, destroyDisplayable, firePropertyChange, firePropertyChange, fireScalarMapSetChange, getColorUnit, getConstantMaps, getDestroyed, getDisplay, getDisplayMaster, getDisplayUnit, getPointMode, getScalarMap, getScalarMap, getScalarMap, getScalarMapSet, getUseFastRendering, getUseTimesInAnimation, getVisible, isActive, isUnitCompatible, isVisible, logException, removeConstantMap, removeDataReferences, removePropertyChangeListener, removePropertyChangeListener, removeScalarMap, replaceScalarMap, setAdjustFlow, setColorPalette, setColorPalette, setColorUnit, setConstantPosition, setContourInfo, setDisplay, setDisplayActive, setDisplayInactive, setDisplayMaster, setDisplayUnit, setOverrideAnimationSet, setOverrideAnimationSet, setParent, setRangeForColor, setRangeForColor, setScalarMapSet, setSelectedRange, setSelectedRange, setUseTimesInAnimation, toFrontpublic static java.lang.String COLOR
public static java.lang.String LINE_WIDTH
public static java.lang.String LINE_STYLE
public static java.lang.String POINT_SIZE
public LineDrawing(java.lang.String name)
throws visad.VisADException,
java.rmi.RemoteException
name - name for the instancevisad.VisADException - Can't create the necessary VisAD objectjava.rmi.RemoteException - Can't create the necessary remote objectpublic LineDrawing(LineDrawing that) throws visad.VisADException, java.rmi.RemoteException
that - The other instance.visad.VisADException - Can't create the necessary VisAD objectjava.rmi.RemoteException - Can't create the necessary remote objectpublic void setRGB(double red,
double green,
double blue)
throws visad.VisADException,
java.rmi.RemoteException
red - red value (0 - 1)green - green value (0 - 1)blue - blue value (0 - 1)visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void setRGBA(double red,
double green,
double blue,
double alpha)
throws visad.VisADException,
java.rmi.RemoteException
red - red value (0 - 1)green - green value (0 - 1)blue - blue value (0 - 1)alpha - alpha value (0 - 1)visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void setRGB(float[] rgb)
throws visad.VisADException,
java.rmi.RemoteException
rgb - array of red, green, blue intesities (all 0 - 1).visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void setRGBA(float[] rgba)
throws visad.VisADException,
java.rmi.RemoteException
rgba - array of red, green, blue, alpha intesities (all 0 - 1).visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void setHSV(double hue,
double saturation,
double value)
throws visad.VisADException,
java.rmi.RemoteException
hue - hue value (red=0, green=120, blue=240).saturation - saturation value (0 - 1).value - brightness value (0 - 1).visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void setHSV(float[] hsv)
throws visad.VisADException,
java.rmi.RemoteException
hsv - array of hue (red=0, green=120, blue=240),
saturation (0-1), and brightness (0-1) values.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void setColor(java.awt.Color color)
throws visad.VisADException,
java.rmi.RemoteException
setColor in class Displayablecolor - color for the line.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void setLineWidth(float lineWidth)
throws visad.VisADException,
java.rmi.RemoteException
setLineWidth in class DisplayableDatalineWidth - Width of lines (1 = normal)visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void setLineStyle(int lineStyle)
throws visad.VisADException,
java.rmi.RemoteException
lineStyle - style of linevisad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.GraphicsModeControlpublic void setPointSize(float pointSize)
throws visad.VisADException,
java.rmi.RemoteException
setPointSize in class DisplayableDatapointSize - Size of points (2 = normal)visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public java.awt.Color getColor()
public float getLineWidth()
getLineWidth in class DisplayableDatapublic int getLineStyle()
GraphicsModeControlpublic float getPointSize()
getPointSize in class DisplayableData