Class YAxis
java.lang.Object
org.opensourcephysics.display.axes.XYAxis
org.opensourcephysics.display.axes.YAxis
- All Implemented Interfaces:
Drawable,Interactive,Measurable
YAxis: a y axis that knows how to draw itself in a drawing panel.
Copyright: Copyright (c) 2005 Gould, Christian, and Tobochnik
- Version:
- 1.0
- Author:
- Wolfgang Christian
-
Field Summary
Fields inherited from class org.opensourcephysics.display.axes.XYAxis
DRAW_AT_LOCATION, DRAW_IN_DISPLAY, DRAW_IN_GUTTER, LINEAR, LOG10, x, y -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(DrawingPanel drawingPanel, Graphics g) Draws the axis in the drawing panel.findInteractive(DrawingPanel panel, int xpix, int ypix) voidsetX(double x) voidsetXY(double x, double y) Methods inherited from class org.opensourcephysics.display.axes.XYAxis
calculateLabels, drawMultiplier, getX, getXMax, getXMin, getY, getYMax, getYMin, isEnabled, isMeasured, log10, setAxisType, setEnabled, setLabelFormat, setLabelFormat, setLocation, setLocationType, setShowMajorGrid, setTitle, setTitle, setTitleFont, setYMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensourcephysics.display.Interactive
isInteractive
-
Constructor Details
-
YAxis
public YAxis()Constructor YAxis -
YAxis
Constructor YAxis- Parameters:
title-
-
-
Method Details
-
draw
Draws the axis in the drawing panel. -
findInteractive
- Specified by:
findInteractivein interfaceInteractive- Overrides:
findInteractivein classXYAxis
-
setXY
public void setXY(double x, double y) - Specified by:
setXYin interfaceInteractive- Overrides:
setXYin classXYAxis
-
setX
public void setX(double x) - Specified by:
setXin interfaceInteractive- Overrides:
setXin classXYAxis
-