Package org.opensourcephysics.tools
Class DataToolTab.DataToolPlotter.XYAxes
java.lang.Object
java.awt.geom.Point2D
java.awt.geom.Point2D.Double
org.opensourcephysics.media.core.TPoint
org.opensourcephysics.tools.DataToolTab.DataToolPlotter.XYAxes
- All Implemented Interfaces:
Serializable,Cloneable,Drawable,Interactive,Measurable,Trackable
- Enclosing class:
- DataToolTab.DataToolPlotter
An inner class that draws coordinate axes on the plot.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.awt.geom.Point2D
Point2D.Double, Point2D.Float -
Field Summary
Fields inherited from class org.opensourcephysics.media.core.TPoint
attachedTo, coordsEditTrigger, coordsVisibleInMouseBox, enabled, isAdjusting, prevX, prevY, screenPt, stepEditTrigger, support, toScreen, trackEditTrigger, worldPt, xyStringBuilderFields inherited from class java.awt.geom.Point2D.Double
x, yFields inherited from interface org.opensourcephysics.media.core.Trackable
PROPERTY_ADJUSTING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(DrawingPanel panel, Graphics g) Empty draw method.findInteractive(DrawingPanel panel, int xpix, int ypix) Returns null.doublegetXMax()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.booleanReports whether information is available to set min/max values.voidsetXY(double x, double y) Sets the x and y positions in imagespace.Methods inherited from class org.opensourcephysics.media.core.TPoint
addPropertyChangeListener, addPropertyChangeListener, angle, angle, attachTo, center, cos, cos, detach, equals, getBounds, getFrameNumber, getScreenPosition, getWorldPosition, isAdjusting, isAttached, isCoordsEditTrigger, isEnabled, isStepEditTrigger, isTrackEditTrigger, removePropertyChangeListener, removePropertyChangeListener, setAdjusting, setCoordsEditTrigger, setEnabled, setLocation, setPositionOnLine, setScreenPosition, setScreenPosition, setStepEditTrigger, setTrackEditTrigger, setWorldPosition, setX, setY, showCoordinates, sin, sin, toString, translateMethods inherited from class java.awt.geom.Point2D.Double
getX, getYMethods inherited from class java.awt.geom.Point2D
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, hashCode, setLocationMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opensourcephysics.display.Interactive
getX, getY, isInteractive
-
Constructor Details
-
XYAxes
protected XYAxes()
-
-
Method Details
-
draw
Description copied from class:TPointEmpty draw method. This method should be overridden by subclasses. -
findInteractive
Description copied from class:TPointReturns null. This method should be overridden by subclasses.- Specified by:
findInteractivein interfaceInteractive- Overrides:
findInteractivein classTPoint- Parameters:
panel- the drawing panelxpix- the x pixel position on the panelypix- the y pixel position on the panel- Returns:
- null
-
isMeasured
public boolean isMeasured()Description copied from class:TPointReports whether information is available to set min/max values.- Specified by:
isMeasuredin interfaceMeasurable- Overrides:
isMeasuredin classTPoint- Returns:
false
-
setXY
public void setXY(double x, double y) Description copied from class:TPointSets the x and y positions in imagespace.- Specified by:
setXYin interfaceInteractive- Overrides:
setXYin classTPoint- Parameters:
x- the x positiony- the y position
-
getXMin
public double getXMin()Description copied from class:TPointGets the minimum x needed to draw this object.- Specified by:
getXMinin interfaceMeasurable- Overrides:
getXMinin classTPoint- Returns:
- minimum x
-
getXMax
public double getXMax()Description copied from class:TPointGets the maximum x needed to draw this object.- Specified by:
getXMaxin interfaceMeasurable- Overrides:
getXMaxin classTPoint- Returns:
- maximum x
-
getYMin
public double getYMin()Description copied from class:TPointGets the minimum y needed to draw this object.- Specified by:
getYMinin interfaceMeasurable- Overrides:
getYMinin classTPoint- Returns:
- minimum y
-
getYMax
public double getYMax()Description copied from class:TPointGets the maximum y needed to draw this object.- Specified by:
getYMaxin interfaceMeasurable- Overrides:
getYMaxin classTPoint- Returns:
- maximum y
-