public class XYDisplay extends DisplayMaster
behavior, defaultMouseFunctions, log_, POINT_MODE| Constructor and Description |
|---|
XYDisplay()
Constuctor for display with RealType.XAxis mapped to Display.XAxis
and RealType.YAxis mapped to Display.YAxis and a default name.
|
XYDisplay(boolean offscreen,
java.awt.Dimension dimension)
Constuctor for display with RealType.XAxis mapped to Display.XAxis
and RealType.YAxis mapped to Display.YAxis and the specified offscreen.
|
XYDisplay(java.lang.String name)
Constuctor for display with RealType.XAxis mapped to Display.XAxis
and RealType.YAxis mapped to Display.YAxis and the specified name.
|
XYDisplay(java.lang.String name,
visad.RealType xAxisType,
visad.RealType yAxisType)
Constructor with RealTypes for the X and Y axes and the given name.
|
XYDisplay(java.lang.String name,
visad.RealType xAxisType,
visad.RealType yAxisType,
boolean offScreen,
java.awt.Dimension dimension)
Constructor with RealTypes for the X and Y axes and the given name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
autoScaleXAxis()
Let the XAxis autoscale.
|
void |
autoScaleYAxis()
Let the YAxis autoscale.
|
void |
enableClipping(boolean clip)
Enable clipping of data at the box edges.
|
boolean |
getGridLinesVisible()
Get whether the grid lines are visible
|
java.lang.String |
getName()
Get the name given to this display.
|
visad.AxisScale |
getXAxisScale()
Get the AxisScale associated with the X axis.
|
visad.RealType |
getXAxisType()
Get the mapping for the XAxis.
|
visad.Unit |
getXDisplayUnit()
Get the units of displayed values on the X axis
|
visad.AxisScale |
getYAxisScale()
Get the AxisScale associated with the Y axis.
|
visad.RealType |
getYAxisType()
Get the mapping for the YAxis.
|
visad.Unit |
getYDisplayUnit()
Get the units of displayed values on the Y axis
|
void |
setAspect(double x,
double y)
Set the aspect ratio of the axes
|
void |
setAxisTypes(visad.RealType xType,
visad.RealType yType)
Change the mapping for both axes
|
void |
setGridLinesVisible(boolean yesorno)
Set the grid lines visible
|
void |
setName(java.lang.String newName)
Set the name of this display.
|
void |
setXAxisType(visad.RealType xType)
Change the mapping for the XAxis.
|
void |
setXDisplayUnit(visad.Unit newUnit)
Set the units of displayed values on the X axis
|
void |
setXRange(double min,
double max)
Set the range of displayed values on the X axis
|
void |
setYAxisType(visad.RealType yType)
Change the mapping for the YAxis.
|
void |
setYDisplayUnit(visad.Unit newUnit)
Set the units of displayed values on the Y axis
|
void |
setYRange(double min,
double max)
Set the range of displayed values on the Y axis
|
void |
showAxisScales(boolean show)
Show the scale on both axes.
|
addDisplayable, addDisplayListener, addKeyboardBehavior, addPropertyChangeListener, addPropertyChangeListener, addScalarMap, addScalarMaps, addVetoableChangeListener, addVetoableChangeListener, buildAnimationSet, dataChange, destroy, draw, ensureInactive, equals, finalize, firePropertyChange, firePropertyChange, getAnimationSetFromDisplayables, getAnimationStringVisible, getBackground, getComponent, getDestroyed, getDisplay, getDisplayableCount, getDisplayables, getDisplayables, getDisplayAspect, getDisplayComponent, getDisplayScale, getForeground, getImage, getMouseBehavior, getMouseFunctionMap, getOffscreenDimension, getProjectionMatrix, getRotation, getSavedProjectionMatrix, getScale, getScreenBounds, getStereoAvailable, getWaitMessageVisible, handleMouseWheelMoved, hashCode, indexOf, init, is3D, isActive, isPointMode, printMatrix, printMe, rebuild, rebuildDisplay, reDisplayAll, removeDisplayable, removeDisplayables, removePropertyChangeListener, removePropertyChangeListener, removeScalarMap, removeScalarMaps, removeVetoableChangeListener, removeVetoableChangeListener, replaceScalarMap, reScale, resetMouseFunctions, resetProjection, rotate, rotateX, rotateY, rotateZ, saveCurrentDisplay, saveCurrentDisplay, saveCurrentDisplay, saveProjection, setActive, setAnimation, setAnimationStringVisible, setBackground, setDefaultMouseFunctions, setDisplayables, setDisplayables, setDisplayActive, setDisplayAspect, setDisplayInactive, setEyePosition, setForeground, setKeyboardBehavior, setKeyboardEventMap, setKeyboardEventMap, setMouseFunctions, setOffscreenDimension, setPointMode, setProjectionMatrix, setRebuildNecessary, setWaitMessageVisible, setWheelEventMap, translate, zoom, zoompublic XYDisplay()
throws visad.VisADException,
java.rmi.RemoteException
visad.VisADException - some VisAD errorjava.rmi.RemoteException - a remote errorpublic XYDisplay(java.lang.String name)
throws visad.VisADException,
java.rmi.RemoteException
name - name for the displayvisad.VisADException - some VisAD errorjava.rmi.RemoteException - a remote errorpublic XYDisplay(boolean offscreen,
java.awt.Dimension dimension)
throws visad.VisADException,
java.rmi.RemoteException
offscreen - is this display offscreendimension - size of display for off screen rendering. May be null.visad.VisADException - some VisAD errorjava.rmi.RemoteException - a remote errorpublic XYDisplay(java.lang.String name,
visad.RealType xAxisType,
visad.RealType yAxisType)
throws visad.VisADException,
java.rmi.RemoteException
name - name for the displayxAxisType - a RealType for ScalarMap(yAxisType, Display.XAxis)yAxisType - a RealType for ScalarMap(xAxisType, Display.YAxis)visad.VisADException - some VisAD errorjava.rmi.RemoteException - a remote errorpublic XYDisplay(java.lang.String name,
visad.RealType xAxisType,
visad.RealType yAxisType,
boolean offScreen,
java.awt.Dimension dimension)
throws visad.VisADException,
java.rmi.RemoteException
name - name for the displayxAxisType - a RealType for ScalarMap(yAxisType, Display.XAxis)yAxisType - a RealType for ScalarMap(xAxisType, Display.YAxis)offScreen - is this display offscreendimension - size of display for off screen rendering. May be null.visad.VisADException - some VisAD errorjava.rmi.RemoteException - a remote errorpublic void setXAxisType(visad.RealType xType)
throws visad.VisADException,
java.rmi.RemoteException
xType - new RealType for ScalarMapvisad.VisADException - some VisAD errorjava.rmi.RemoteException - a remote errorpublic void setYAxisType(visad.RealType yType)
throws visad.VisADException,
java.rmi.RemoteException
yType - new RealType for ScalarMapvisad.VisADException - some VisAD errorjava.rmi.RemoteException - a remote errorpublic visad.RealType getXAxisType()
public visad.RealType getYAxisType()
public void setAxisTypes(visad.RealType xType,
visad.RealType yType)
throws visad.VisADException,
java.rmi.RemoteException
xType - new RealType for X axis ScalarMapyType - new RealType for Y axis ScalarMapvisad.VisADException - some VisAD errorjava.rmi.RemoteException - a remote errorpublic visad.AxisScale getXAxisScale()
public visad.AxisScale getYAxisScale()
public void showAxisScales(boolean show)
show - true to showpublic void setXRange(double min,
double max)
min - minimum value for axismax - maximum value for axispublic void setYRange(double min,
double max)
min - minimum value for axismax - maximum value for axispublic void autoScaleXAxis()
public void autoScaleYAxis()
public void setXDisplayUnit(visad.Unit newUnit)
newUnit - units to usepublic void setYDisplayUnit(visad.Unit newUnit)
newUnit - units to usepublic visad.Unit getXDisplayUnit()
public visad.Unit getYDisplayUnit()
public void setAspect(double x,
double y)
x - X axis ratioy - Y axis ratiopublic java.lang.String getName()
public void setName(java.lang.String newName)
newName - new name of display.public void enableClipping(boolean clip)
clip - true to turn clipping on, otherwise offpublic void setGridLinesVisible(boolean yesorno)
yesorno - true to be visiblepublic boolean getGridLinesVisible()