org.opensourcephysics.display.axes
Interface PolarAxes

All Superinterfaces:
Drawable, DrawableAxes
All Known Implementing Classes:
AbstractPolarAxis, PolarType1, PolarType2

public interface PolarAxes
extends DrawableAxes

PolarAxes defines common polar coordinate methods.

Author:
W. Christian

Method Summary
 void autospaceRings(boolean autoscale)
          Automatically sets the spacing of the radial gridlines.
 double drawRings(double rmax, DrawingPanel panel, java.awt.Graphics g)
          Draws the rings for the polar plot.
 void drawSpokes(double rmax, DrawingPanel panel, java.awt.Graphics g)
          Draws the spokes for the polar plot.
 double getDeltaR()
          Gets the spacing of the radial gridlines.
 double getDeltaTheta()
          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(java.awt.Color color)
          Sets the interior background color.
 
Methods inherited from interface org.opensourcephysics.display.axes.DrawableAxes
getInteriorBackground, getTitle, getXLabel, getYLabel, resizeFonts, setShowMajorXGrid, setShowMajorYGrid, setShowMinorXGrid, setShowMinorYGrid, setTitle, setVisible, setXLabel, setYLabel
 
Methods inherited from interface org.opensourcephysics.display.Drawable
draw
 

Method Detail

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

double drawRings(double rmax,
                 DrawingPanel panel,
                 java.awt.Graphics g)
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

void drawSpokes(double rmax,
                DrawingPanel panel,
                java.awt.Graphics g)
Draws the spokes for the polar plot.

Parameters:
panel -
g -

setInteriorBackground

void setInteriorBackground(java.awt.Color color)
Sets the interior background color.

Specified by:
setInteriorBackground in interface DrawableAxes