Package org.opensourcephysics.display
Interface Measurable
- All Superinterfaces:
Drawable
- All Known Subinterfaces:
ByteLattice,CellLattice.OSLattice,Interactive,InteractiveImage,LogMeasurable,Plot2D,Selectable,Video
- All Known Implementing Classes:
AbstractInteractive,AbstractTrail,AnalyticParticle,AutoTracker,AutoTracker.ATObject,AutoTracker.Corner,AutoTracker.Handle,AutoTracker.Target,BinaryLattice,BoundedImage,BoundedShape,BoundedTextLine,ByteImage,ByteRaster,Calibration,CalibrationStep.Position,Carpet,CartesianInteractive,CartesianType3,CellLattice,CellLatticeOSX,CellLatticePC,CenterOfMass,CircleFitter,ComplexCarpet,ComplexContourPlot,ComplexDataset,ComplexGridPlot,ComplexInterpolatedPlot,ComplexSurfacePlot,ContourPlot,CoordAxes,CoordAxes.AnglePoint,CoordAxes.OriginPoint,DataColumn,DataFunction,DataRaster,Dataset,DatasetManager,DataToolTab.DataToolAxes,DataToolTab.DataToolPlotter.LimitLine,DataToolTab.DataToolPlotter.XYAxes,DrawableBuffer,DynamicParticle,DynamicParticlePolar,DynamicSystem,FunctionDrawer,GifVideo,GrayscalePlot,GridPlot,HighlightableDataset,Histogram,HistogramDataset,ImageVideo,InputTrack,IntegerImage,IntegerRaster,InteractiveArrow,InteractiveCenteredArrow,InteractiveCircle,InteractiveImage,InteractiveLabel,InteractiveShape,InteractiveTextLine,InterpolatedPlot,JSMovieVideo,LineProfile,MeasuredCircle,MeasuredImage,MovieVideo,OffsetOrigin,OffsetOriginStep.Position,ParticleDataTrack,ParticleModel,PencilCaption,PencilDrawing,PencilScene,PerspectiveFilter.Corner,PerspectiveStep.Corner,PerspectiveTrack,PointMass,PositionStep.Position,Protractor,Protractor,Protractor.Tip,RGBRegion,RGBRegion.VertexHandle,RGBStep.Position,SiteLattice,Spring,Stripchart,SurfacePlot,TapeMeasure,TCircle,TCoordAxes,TLine,TLineProfile,TMat,TPoint,Trail,TrailBezier,TrailSmart,TriangularBinaryLattice,TriangularByteLattice,TShape,TTrack,TVector,UncertainFunctionDrawer,Vector,VectorPlot,VectorSum,VideoAdapter,XAxis,XuggleVideo,XYAxis,YAxis
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
Modifier and TypeMethodDescriptiondoublegetXMax()Gets the maximum x needed to draw this object.doublegetXMin()Gets the minimum x needed to draw this object.doublegetYMax()Gets the maximum y needed to draw this object.doublegetYMin()Gets the minimum y needed to draw this object.booleanDetermines if information is available to set min/max values.Methods inherited from interface org.opensourcephysics.display.Drawable
draw, isInteractive
-
Method Details
-
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
-