|
||||||||||
| 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
edu.wisc.ssec.mcidasv.data.hydra.CurveDrawer
public class CurveDrawer
Provides support for a Displayable that comprises a set of drawn curves. The curves can be drawn in in spherical and other non-Cartesian coordinate systems by selecting the appropriate RealTypes or RealTupleType.
Sample usage:
CurveDrawer curveDraw =
new CurveDrawer(RealType.Latitude, RealType.Longitude);
curveDraw.addAction(new ActionImpl() {
public void doAction()
throws VisADException, RemoteException
{
UnionSet curves = curveDraw.getData();
(do something useful with the curves)
}
});
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ucar.visad.display.DisplayableData |
|---|
DisplayableData.DragAdapter |
| Field Summary | |
|---|---|
private DataRenderer |
curver
data renderer |
private UnionSet |
curves
the set of drawn curves |
private int |
mask
mask for mouse events |
private RealTupleType |
type
The type for the drawing space |
| Fields inherited from class ucar.visad.display.LineDrawing |
|---|
COLOR, LINE_STYLE, LINE_WIDTH, POINT_SIZE |
| Fields inherited from class ucar.visad.display.DisplayableData |
|---|
MANIPULABLE, renderer, VISIBLE |
| Fields inherited from class ucar.visad.display.Displayable |
|---|
DISPLAY, parent, SCALAR_MAP_SET |
| Constructor Summary | |
|---|---|
protected |
CurveDrawer(CurveDrawer that)
Constructor for creating a CurveDrawer from another instance |
|
CurveDrawer(RealTupleType type)
Construct a CurveDrawer using the RealTupleType |
|
CurveDrawer(RealTupleType type,
int mask)
Construct a CurveDrawer using the RealTupleType of the drawing space and a mask for the mouse |
|
CurveDrawer(RealType xType,
RealType yType)
Construct a CurveDrawer using xType as the X coordinate and yType as the Y coordinate of the box. |
|
CurveDrawer(RealType xType,
RealType yType,
int mask)
Construct a CurveDrawer using xType as the X coordinate and yType as the Y coordinate of the box. |
|
CurveDrawer(UnionSet curves)
Construct a CurveDrawer with a predefined set of curves. |
|
CurveDrawer(UnionSet curves,
int mask)
Construct a CurveDrawer with a predefined set of curves. |
| Method Summary | |
|---|---|
Displayable |
cloneForDisplay()
Returns a clone of this instance suitable for another VisAD display. |
protected void |
dataChange()
Invoked when box mouse is released. |
UnionSet |
getCurves()
Return the curves of the CurveDrawer. |
protected DataRenderer |
getDataRenderer()
Returns the DataRenderer for this displayable. |
boolean |
getDrawingEnabled()
Set whether the curves are manipulable or not. |
void |
setCurves(UnionSet curves)
Set the curves of the CurveDrawer. |
void |
setDrawingEnabled(boolean b)
Set whether the curves are manipulable or not. |
| Methods inherited from class ucar.visad.display.LineDrawing |
|---|
getColor, getLineStyle, getLineWidth, getPointSize, setColor, setHSV, setHSV, setLineStyle, setLineWidth, setPointSize, setRGB, setRGB, setRGBA, setRGBA |
| Methods inherited from class ucar.visad.display.DisplayableData |
|---|
addAction, destroy, getActive, getAnimationSet, getData, getName, hasData, hasDataObject, isManipulable, isPickable, myAddConstantMaps, myAddDataReferences, myRemoveDataReferences, removeAction, setActive, setData, setDataReference, setDragAdapter, setManipulable, setPickable, setPointMode, setUseFastRendering, setVisible, showme, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private RealTupleType type
private UnionSet curves
private int mask
private DataRenderer curver
| Constructor Detail |
|---|
public CurveDrawer(RealType xType,
RealType yType)
throws VisADException,
RemoteException
xType - RealType of the X coordinate of the boxyType - RealType of the Y coordinate of the box
VisADException - VisAD error
RemoteException - Remote error
public CurveDrawer(RealType xType,
RealType yType,
int mask)
throws VisADException,
RemoteException
xType - RealType of the X coordinate of the boxyType - RealType of the Y coordinate of the boxmask - key mask to use for mouse button
VisADException - VisAD error
RemoteException - Remote error
public CurveDrawer(RealTupleType type)
throws VisADException,
RemoteException
type - RealTupleType of the drawing space
VisADException - VisAD error
RemoteException - Remote error
public CurveDrawer(RealTupleType type,
int mask)
throws VisADException,
RemoteException
type - RealTupleType of the drawing spacemask - key mask to use for mouse button
VisADException - VisAD error
RemoteException - Remote error
public CurveDrawer(UnionSet curves)
throws VisADException,
RemoteException
curves - UnionSet of curves
VisADException - VisAD error
RemoteException - Remote error
public CurveDrawer(UnionSet curves,
int mask)
throws VisADException,
RemoteException
curves - UnionSet of curvesmask - key mask to use for mouse button
RemoteException - Java RMI error
VisADException - problem creating VisAD object
protected CurveDrawer(CurveDrawer that)
throws VisADException,
RemoteException
that - other instance
VisADException - VisAD error
RemoteException - Remote error| Method Detail |
|---|
protected void dataChange()
throws VisADException,
RemoteException
dataChange in class DisplayableDataRemoteException - Java RMI error
VisADException - problem creating VisAD objectpublic UnionSet getCurves()
public void setCurves(UnionSet curves)
throws VisADException,
RemoteException
curves - set of curves to display
RemoteException - Java RMI error
VisADException - problem creating VisAD object
public void setDrawingEnabled(boolean b)
throws VisADException,
RemoteException
b - true to enable
RemoteException - Java RMI error
VisADException - problem creating VisAD objectpublic boolean getDrawingEnabled()
public Displayable cloneForDisplay()
throws RemoteException,
VisADException
cloneForDisplay in class DisplayableDataVisADException - VisAD failure.
RemoteException - Java RMI failure.protected DataRenderer getDataRenderer()
getDataRenderer in class DisplayableData
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||