org.opensourcephysics.display
Interface Measurable

All Superinterfaces:
Drawable
All Known Subinterfaces:
ByteLattice, Interactive, InteractiveImage, LogMeasurable, Plot2D, Selectable, Video
All Known Implementing Classes:
AbstractInteractive, AbstractTrail, AnalyticParticle, BinaryLattice, BoundedImage, BoundedShape, BoundedTextLine, ByteRaster, Calibration, CalibrationStep.Position, Carpet, CartesianInteractive, CartesianType3, CellLattice, CellLatticeOSX, CellLatticePC, CenterOfMass, ComplexCarpet, ComplexContourPlot, ComplexDataset, ComplexGridPlot, ComplexInterpolatedPlot, ComplexSurfacePlot, ContourPlot, CoordAxes, DataColumn, DataFunction, DataRaster, Dataset, DatasetManager, DrawableBuffer, DynamicParticle, DynamicParticleConvertible, DynamicParticlePolar, DynamicTwoBody, DynamicTwoBody.Body2, FunctionDrawer, GifVideo, GrayscalePlot, GridPlot, HighlightableDataset, Histogram, HistogramDataset, ImageVideo, IntegerRaster, InteractiveArrow, InteractiveCenteredArrow, InteractiveCircle, InteractiveImage, InteractiveLabel, InteractiveShape, InteractiveTextLine, InterpolatedPlot, LineProfile, MeasuredCircle, MeasuredImage, OffsetOrigin, OffsetOriginStep.Position, ParticleModel, PointMass, PositionStep.Position, Protractor, Protractor.Tip, QTVideo, RGBRegion, RGBStep.Position, SiteLattice, Spring, Star, StarStep.Position, Stripchart, SurfacePlot, TapeMeasure, TCircle, TCoordAxes, TLine, TLineProfile, TMat, TPoint, Trail, TrailBezier, TrailSmart, TriangularBinaryLattice, TriangularByteLattice, TShape, TTrack, TVector, Vector, VectorPlot, VectorSum, 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