Interface PolarAxes
- All Superinterfaces:
Drawable,DrawableAxes
- All Known Implementing Classes:
AbstractPolarAxis,PolarType1,PolarType2
PolarAxes defines common polar coordinate methods.
- Author:
- W. Christian
-
Method Summary
Modifier and TypeMethodDescriptionvoidautospaceRings(boolean autoscale) Automatically sets the spacing of the radial gridlines.doubledrawRings(double rmax, DrawingPanel panel, Graphics g) Draws the rings for the polar plot.voiddrawSpokes(double rmax, DrawingPanel panel, Graphics g) Draws the spokes for the polar plot.doubleGets the spacing of the radial gridlines.doubleGets the spacing of the radial gridlines.voidsetDeltaR(double dr) Sets the spacing of the radial gridlines.voidsetDeltaTheta(double dtheta) Sets the spacing of the radial gridlines.voidsetInteriorBackground(Color color) Sets the interior background color.Methods inherited from interface org.opensourcephysics.display.Drawable
draw, isInteractiveMethods inherited from interface org.opensourcephysics.display.axes.DrawableAxes
getInteriorBackground, getTitle, getXLabel, getYLabel, resizeFonts, setShowMajorXGrid, setShowMajorYGrid, setShowMinorXGrid, setShowMinorYGrid, setTitle, setVisible, setXLabel, setYLabel
-
Method Details
-
setDeltaR
void setDeltaR(double dr) Sets the spacing of the radial gridlines.- Parameters:
dr-
-
autospaceRings
void autospaceRings(boolean autoscale) Automatically sets the spacing of the radial gridlines.- Parameters:
dr-
-
getDeltaR
double getDeltaR()Gets the spacing of the radial gridlines. -
setDeltaTheta
void setDeltaTheta(double dtheta) Sets the spacing of the radial gridlines.- Parameters:
dtheta- in degree
-
getDeltaTheta
double getDeltaTheta()Gets the spacing of the radial gridlines. -
drawRings
Draws the rings for the polar plot. The ring spacing used will depend on the resolution and the autoscale flag.- Parameters:
panel-g-- Returns:
- double the ring spacing that was used
-
drawSpokes
Draws the spokes for the polar plot.- Parameters:
panel-g-
-
setInteriorBackground
Sets the interior background color.- Specified by:
setInteriorBackgroundin interfaceDrawableAxes
-