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, xyStringBuilder
Fields inherited from class java.awt.geom.Point2D.Double
x, y
Fields inherited from interface org.opensourcephysics.media.core.Trackable
PROPERTY_ADJUSTING
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
draw
(DrawingPanel panel, Graphics g) Empty draw method.findInteractive
(DrawingPanel panel, int xpix, int ypix) Returns null.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
Reports whether information is available to set min/max values.void
setXY
(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, translate
Methods inherited from class java.awt.geom.Point2D.Double
getX, getY
Methods inherited from class java.awt.geom.Point2D
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, hashCode, setLocation
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opensourcephysics.display.Interactive
getX, getY, isInteractive
-
Constructor Details
-
XYAxes
protected XYAxes()
-
-
Method Details
-
draw
Description copied from class:TPoint
Empty draw method. This method should be overridden by subclasses. -
findInteractive
Description copied from class:TPoint
Returns null. This method should be overridden by subclasses.- Specified by:
findInteractive
in interfaceInteractive
- Overrides:
findInteractive
in 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:TPoint
Reports whether information is available to set min/max values.- Specified by:
isMeasured
in interfaceMeasurable
- Overrides:
isMeasured
in classTPoint
- Returns:
false
-
setXY
public void setXY(double x, double y) Description copied from class:TPoint
Sets the x and y positions in imagespace.- Specified by:
setXY
in interfaceInteractive
- Overrides:
setXY
in classTPoint
- Parameters:
x
- the x positiony
- the y position
-
getXMin
public double getXMin()Description copied from class:TPoint
Gets the minimum x needed to draw this object.- Specified by:
getXMin
in interfaceMeasurable
- Overrides:
getXMin
in classTPoint
- Returns:
- minimum x
-
getXMax
public double getXMax()Description copied from class:TPoint
Gets the maximum x needed to draw this object.- Specified by:
getXMax
in interfaceMeasurable
- Overrides:
getXMax
in classTPoint
- Returns:
- maximum x
-
getYMin
public double getYMin()Description copied from class:TPoint
Gets the minimum y needed to draw this object.- Specified by:
getYMin
in interfaceMeasurable
- Overrides:
getYMin
in classTPoint
- Returns:
- minimum y
-
getYMax
public double getYMax()Description copied from class:TPoint
Gets the maximum y needed to draw this object.- Specified by:
getYMax
in interfaceMeasurable
- Overrides:
getYMax
in classTPoint
- Returns:
- maximum y
-