public class CurveDrawer extends LineDrawing
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)
}
});
DisplayableData.DragAdapterCOLOR, LINE_STYLE, LINE_WIDTH, POINT_SIZEMANIPULABLE, renderer, VISIBLEDISPLAY, parent, SCALAR_MAP_SET| Modifier | Constructor and Description |
|---|---|
protected |
CurveDrawer(CurveDrawer that)
Constructor for creating a CurveDrawer from another instance
|
|
CurveDrawer(visad.RealTupleType type)
Construct a CurveDrawer using the RealTupleType
|
|
CurveDrawer(visad.RealTupleType type,
int mask)
Construct a CurveDrawer using the RealTupleType of the drawing
space and a mask for the mouse
|
|
CurveDrawer(visad.RealType xType,
visad.RealType yType)
Construct a CurveDrawer using xType as the X coordinate and
yType as the Y coordinate of the box.
|
|
CurveDrawer(visad.RealType xType,
visad.RealType yType,
int mask)
Construct a CurveDrawer using xType as the X coordinate and
yType as the Y coordinate of the box.
|
|
CurveDrawer(visad.UnionSet curves)
Construct a CurveDrawer with a predefined set of curves.
|
|
CurveDrawer(visad.UnionSet curves,
int mask)
Construct a CurveDrawer with a predefined set of curves.
|
| Modifier and Type | Method and Description |
|---|---|
Displayable |
cloneForDisplay()
Returns a clone of this instance suitable for another VisAD display.
|
protected void |
dataChange()
Invoked when box mouse is released.
|
visad.UnionSet |
getCurves()
Return the curves of the CurveDrawer.
|
protected visad.DataRenderer |
getDataRenderer()
Returns the DataRenderer for this displayable.
|
boolean |
getDrawingEnabled()
Set whether the curves are manipulable or not.
|
void |
setCurves(visad.UnionSet curves)
Set the curves of the CurveDrawer.
|
void |
setDrawingEnabled(boolean b)
Set whether the curves are manipulable or not.
|
getColor, getLineStyle, getLineWidth, getPointSize, setColor, setHSV, setHSV, setLineStyle, setLineWidth, setPointSize, setRGB, setRGB, setRGBA, setRGBAaddAction, destroy, getActive, getAnimationSet, getData, 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 CurveDrawer(visad.RealType xType,
visad.RealType yType)
throws visad.VisADException,
java.rmi.RemoteException
xType - RealType of the X coordinate of the boxyType - RealType of the Y coordinate of the boxvisad.VisADException - VisAD errorjava.rmi.RemoteException - Remote errorpublic CurveDrawer(visad.RealType xType,
visad.RealType yType,
int mask)
throws visad.VisADException,
java.rmi.RemoteException
xType - RealType of the X coordinate of the boxyType - RealType of the Y coordinate of the boxmask - key mask to use for mouse buttonvisad.VisADException - VisAD errorjava.rmi.RemoteException - Remote errorpublic CurveDrawer(visad.RealTupleType type)
throws visad.VisADException,
java.rmi.RemoteException
type - RealTupleType of the drawing spacevisad.VisADException - VisAD errorjava.rmi.RemoteException - Remote errorpublic CurveDrawer(visad.RealTupleType type,
int mask)
throws visad.VisADException,
java.rmi.RemoteException
type - RealTupleType of the drawing spacemask - key mask to use for mouse buttonvisad.VisADException - VisAD errorjava.rmi.RemoteException - Remote errorpublic CurveDrawer(visad.UnionSet curves)
throws visad.VisADException,
java.rmi.RemoteException
curves - UnionSet of curvesvisad.VisADException - VisAD errorjava.rmi.RemoteException - Remote errorpublic CurveDrawer(visad.UnionSet curves,
int mask)
throws visad.VisADException,
java.rmi.RemoteException
curves - UnionSet of curvesmask - key mask to use for mouse buttonjava.rmi.RemoteException - Java RMI errorvisad.VisADException - problem creating VisAD objectprotected CurveDrawer(CurveDrawer that) throws visad.VisADException, java.rmi.RemoteException
that - other instancevisad.VisADException - VisAD errorjava.rmi.RemoteException - Remote errorprotected void dataChange()
throws visad.VisADException,
java.rmi.RemoteException
dataChange in class DisplayableDatajava.rmi.RemoteException - Java RMI errorvisad.VisADException - problem creating VisAD objectpublic visad.UnionSet getCurves()
public void setCurves(visad.UnionSet curves)
throws visad.VisADException,
java.rmi.RemoteException
curves - set of curves to displayjava.rmi.RemoteException - Java RMI errorvisad.VisADException - problem creating VisAD objectpublic void setDrawingEnabled(boolean b)
throws visad.VisADException,
java.rmi.RemoteException
b - true to enablejava.rmi.RemoteException - Java RMI errorvisad.VisADException - problem creating VisAD objectpublic boolean getDrawingEnabled()
public Displayable cloneForDisplay() throws java.rmi.RemoteException, visad.VisADException
cloneForDisplay in class DisplayableDatavisad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.protected visad.DataRenderer getDataRenderer()
getDataRenderer in class DisplayableData