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 TypeMethodDescriptionvoid
autospaceRings
(boolean autoscale) Automatically sets the spacing of the radial gridlines.double
drawRings
(double rmax, DrawingPanel panel, Graphics g) Draws the rings for the polar plot.void
drawSpokes
(double rmax, DrawingPanel panel, Graphics g) Draws the spokes for the polar plot.double
Gets the spacing of the radial gridlines.double
Gets the spacing of the radial gridlines.void
setDeltaR
(double dr) Sets the spacing of the radial gridlines.void
setDeltaTheta
(double dtheta) Sets the spacing of the radial gridlines.void
setInteriorBackground
(Color color) Sets the interior background color.Methods inherited from interface org.opensourcephysics.display.Drawable
draw, isInteractive
Methods 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:
setInteriorBackground
in interfaceDrawableAxes
-