org.opensourcephysics.display
Interface Measurable

All Superinterfaces:
Drawable
All Known Subinterfaces:
ByteLattice, Interactive, Plot2D, Selectable
All Known Implementing Classes:
AbstractInteractive, BinaryLattice, BoundedShape, ByteRaster, CellLattice, CellLatticeOSX, CellLatticePC, ComplexDataset, ComplexGridPlot, ComplexInterpolatedPlot, ComplexSurfacePlot, ContourPlot, DataRaster, Dataset, DatasetManager, DrawableBuffer, FunctionDrawer, GrayscalePlot, GridPlot, Histogram, InteractiveCircle, InteractiveLabel, InteractiveShape, InterpolatedPlot, MeasuredCircle, MeasuredImage, SiteLattice, SurfacePlot, Trail, TrailBezier, TriangularBinaryLattice, TriangularByteLattice, VectorPlot

public interface Measurable
extends Drawable

Title: Measurable Description: A Measurable object can return min and max values for its x and y extent. This interface is used to autoscale the x and y axes on a drawing panel. Minimum and maximum values may NOT be valid if isMeasured returns false. Objects that store data, for example, usually return zero if data is null. Copyright: Copyright (c) 2005


Method Summary
 double getXMax()
          Gets the maximum x needed to draw this object.
 double getXMin()
          Gets the minimum x needed to draw this object.
 double getYMax()
          Gets the maximum y needed to draw this object.
 double getYMin()
          Gets the minimum y needed to draw this object.
 boolean isMeasured()
          Determines if information is available to set min/max values.
 
Methods inherited from interface org.opensourcephysics.display.Drawable
draw
 

Method Detail

getXMin

public double getXMin()
Gets the minimum x needed to draw this object.

Returns:
minimum

getXMax

public double getXMax()
Gets the maximum x needed to draw this object.

Returns:
maximum

getYMin

public double getYMin()
Gets the minimum y needed to draw this object.

Returns:
minimum

getYMax

public double getYMax()
Gets the maximum y needed to draw this object.

Returns:
minimum

isMeasured

public boolean isMeasured()
Determines if information is available to set min/max values. Objects that store data should return false if data is null.

Returns:
true if min/max values are valid