org.opensourcephysics.display
Interface Measurable

All Superinterfaces:
Drawable
All Known Subinterfaces:
ByteLattice, Interactive, InteractiveImage, LogMeasurable, Plot2D, Selectable, Video
All Known Implementing Classes:
AbstractInteractive, AbstractTrail, BinaryLattice, BoundedImage, BoundedShape, BoundedTextLine, ByteRaster, Carpet, CartesianInteractive, CartesianType3, CellLattice, CellLatticeOSX, CellLatticePC, ComplexCarpet, ComplexContourPlot, ComplexDataset, ComplexGridPlot, ComplexInterpolatedPlot, ComplexSurfacePlot, ContourPlot, DataColumn, DataFunction, DataRaster, Dataset, DatasetManager, DrawableBuffer, FunctionDrawer, GifVideo, GrayscalePlot, GridPlot, HighlightableDataset, Histogram, HistogramDataset, ImageVideo, IntegerRaster, InteractiveArrow, InteractiveCenteredArrow, InteractiveCircle, InteractiveImage, InteractiveLabel, InteractiveShape, InteractiveTextLine, InterpolatedPlot, MeasuredCircle, MeasuredImage, Protractor, Protractor.Tip, SiteLattice, Spring, Stripchart, SurfacePlot, TCircle, TCoordAxes, TLine, TLineProfile, TPoint, Trail, TrailBezier, TrailSmart, TriangularBinaryLattice, TriangularByteLattice, TShape, TVector, VectorPlot, VideoAdapter, XAxis, XYAxis, YAxis

public interface Measurable
extends Drawable

A Measurable object returns 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

Version:
1.0
Author:
Wolfgang Christian

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

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

Returns:
minimum

getXMax

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

Returns:
maximum

getYMin

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

Returns:
minimum

getYMax

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

Returns:
minimum

isMeasured

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