|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.visad.display.DisplayMaster
ucar.visad.display.XYDisplay
public class XYDisplay
A wrapper for a 2D display for XY plots of data
| Field Summary |
|---|
| Fields inherited from class ucar.visad.display.DisplayMaster |
|---|
behavior, defaultMouseFunctions, log_, POINT_MODE |
| Constructor Summary | |
|---|---|
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,
Dimension dimension)
Constuctor for display with RealType.XAxis mapped to Display.XAxis and RealType.YAxis mapped to Display.YAxis and the specified offscreen. |
|
XYDisplay(String name)
Constuctor for display with RealType.XAxis mapped to Display.XAxis and RealType.YAxis mapped to Display.YAxis and the specified name. |
|
XYDisplay(String name,
RealType xAxisType,
RealType yAxisType)
Constructor with RealTypes for the X and Y axes and the given name. |
|
XYDisplay(String name,
RealType xAxisType,
RealType yAxisType,
boolean offScreen,
Dimension dimension)
Constructor with RealTypes for the X and Y axes and the given name. |
|
| Method Summary | |
|---|---|
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 |
String |
getName()
Get the name given to this display. |
AxisScale |
getXAxisScale()
Get the AxisScale associated with the X axis. |
RealType |
getXAxisType()
Get the mapping for the XAxis. |
Unit |
getXDisplayUnit()
Get the units of displayed values on the X axis |
AxisScale |
getYAxisScale()
Get the AxisScale associated with the Y axis. |
RealType |
getYAxisType()
Get the mapping for the YAxis. |
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(RealType xType,
RealType yType)
Change the mapping for both axes |
void |
setGridLinesVisible(boolean yesorno)
Set the grid lines visible |
void |
setName(String newName)
Set the name of this display. |
void |
setXAxisType(RealType xType)
Change the mapping for the XAxis. |
void |
setXDisplayUnit(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(RealType yType)
Change the mapping for the YAxis. |
void |
setYDisplayUnit(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. |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XYDisplay()
throws VisADException,
RemoteException
VisADException - some VisAD error
RemoteException - a remote error
public XYDisplay(String name)
throws VisADException,
RemoteException
name - name for the display
VisADException - some VisAD error
RemoteException - a remote error
public XYDisplay(boolean offscreen,
Dimension dimension)
throws VisADException,
RemoteException
offscreen - is this display offscreendimension - size of display for off screen rendering. May be null.
VisADException - some VisAD error
RemoteException - a remote error
public XYDisplay(String name,
RealType xAxisType,
RealType yAxisType)
throws VisADException,
RemoteException
name - name for the displayxAxisType - a RealType for ScalarMap(yAxisType, Display.XAxis)yAxisType - a RealType for ScalarMap(xAxisType, Display.YAxis)
VisADException - some VisAD error
RemoteException - a remote error
public XYDisplay(String name,
RealType xAxisType,
RealType yAxisType,
boolean offScreen,
Dimension dimension)
throws VisADException,
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.
VisADException - some VisAD error
RemoteException - a remote error| Method Detail |
|---|
public void setXAxisType(RealType xType)
throws VisADException,
RemoteException
xType - new RealType for ScalarMap
VisADException - some VisAD error
RemoteException - a remote error
public void setYAxisType(RealType yType)
throws VisADException,
RemoteException
yType - new RealType for ScalarMap
VisADException - some VisAD error
RemoteException - a remote errorpublic RealType getXAxisType()
public RealType getYAxisType()
public void setAxisTypes(RealType xType,
RealType yType)
throws VisADException,
RemoteException
xType - new RealType for X axis ScalarMapyType - new RealType for Y axis ScalarMap
VisADException - some VisAD error
RemoteException - a remote errorpublic AxisScale getXAxisScale()
public AxisScale getYAxisScale()
public void showAxisScales(boolean show)
show - true to show
public void setXRange(double min,
double max)
min - minimum value for axismax - maximum value for axis
public void setYRange(double min,
double max)
min - minimum value for axismax - maximum value for axispublic void autoScaleXAxis()
public void autoScaleYAxis()
public void setXDisplayUnit(Unit newUnit)
newUnit - units to usepublic void setYDisplayUnit(Unit newUnit)
newUnit - units to usepublic Unit getXDisplayUnit()
public Unit getYDisplayUnit()
public void setAspect(double x,
double y)
x - X axis ratioy - Y axis ratiopublic String getName()
public void setName(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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||