Interface CartesianAxes
- All Superinterfaces:
Drawable
,DrawableAxes
- All Known Implementing Classes:
CartesianInteractive
,CartesianType1
,CartesianType2
,CartesianType3
,DataToolTab.DataToolAxes
CartesianAxes defines common Cartesian coordinate methods.
- Author:
- W. Christian
-
Method Summary
Modifier and TypeMethodDescriptiondouble
getX()
Gets the drawing location.double
getY()
Gets the drawing location.boolean
isXLog()
Determines if the x axis is logarithmic.boolean
isYLog()
Deteermines if the y axis is logarithmic.void
setX
(double x) Sets the drawing location.void
setXLog
(boolean isLog) Sets the x axis to linear or logarithmic.void
setY
(double y) Sets the drawing location.void
setYLog
(boolean isLog) Sets the y axis to linear or logarithmic.Methods inherited from interface org.opensourcephysics.display.Drawable
draw, isInteractive
Methods inherited from interface org.opensourcephysics.display.axes.DrawableAxes
getInteriorBackground, getTitle, getXLabel, getYLabel, resizeFonts, setInteriorBackground, setShowMajorXGrid, setShowMajorYGrid, setShowMinorXGrid, setShowMinorYGrid, setTitle, setVisible, setXLabel, setYLabel
-
Method Details
-
setX
void setX(double x) Sets the drawing location.- Parameters:
x
-
-
setY
void setY(double y) Sets the drawing location.- Parameters:
y
-
-
getX
double getX()Gets the drawing location.- Returns:
- the x location
-
getY
double getY()Gets the drawing location.- Returns:
- the y location
-
isXLog
boolean isXLog()Determines if the x axis is logarithmic.- Returns:
- true if logarithmic; false otherwise
-
isYLog
boolean isYLog()Deteermines if the y axis is logarithmic.- Returns:
- true if logarithmic; false otherwise
-
setXLog
void setXLog(boolean isLog) Sets the x axis to linear or logarithmic.- Parameters:
isLog
- true for log scale; false otherwise
-
setYLog
void setYLog(boolean isLog) Sets the y axis to linear or logarithmic.- Parameters:
isLog
- true for log scale; false otherwise
-