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 TypeMethodDescriptiondoublegetX()Gets the drawing location.doublegetY()Gets the drawing location.booleanisXLog()Determines if the x axis is logarithmic.booleanisYLog()Deteermines if the y axis is logarithmic.voidsetX(double x) Sets the drawing location.voidsetXLog(boolean isLog) Sets the x axis to linear or logarithmic.voidsetY(double y) Sets the drawing location.voidsetYLog(boolean isLog) Sets the y axis to linear or logarithmic.Methods inherited from interface org.opensourcephysics.display.Drawable
draw, isInteractiveMethods 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
-