public abstract class AbstractPolarAxis extends AbstractAxes implements PolarAxes
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
autospaceRings |
protected double |
dr |
protected double |
dtheta |
protected java.awt.Color |
interiorColor |
defaultBottomGutter, defaultLeftGutter, defaultRightGutter, defaultTopGutter, drawingPanel, gridcolor, labelFont, labelFormat, superscriptFont, titleFont, titleLine, visible| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPolarAxis(DrawingPanel drawingPanel)
Creates polar axes that will display themselves within the given drawing panel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
autospaceRings(boolean autospace)
Automatically sets the spacing of the radial grid.
|
protected void |
drawRAxis(double dr,
double rmax,
DrawingPanel panel,
java.awt.Graphics g)
Draws the spokes for the polar plot.
|
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 grid.
|
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.
|
void |
setLabelFormat(java.lang.String formatString)
Method setLabelFormat
|
getInteriorBackground, getTitle, isVisible, resetPanelGutters, resizeFonts, setDefaultGutters, setTitle, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTitle, getXLabel, getYLabel, resizeFonts, setShowMajorXGrid, setShowMajorYGrid, setShowMinorXGrid, setShowMinorYGrid, setTitle, setVisible, setXLabel, setYLabelprotected double dr
protected double dtheta
protected java.awt.Color interiorColor
protected boolean autospaceRings
protected AbstractPolarAxis(DrawingPanel drawingPanel)
drawingPanel - DrawingPanelpublic void setInteriorBackground(java.awt.Color color)
setInteriorBackground in interface DrawableAxessetInteriorBackground in interface PolarAxessetInteriorBackground in class AbstractAxescolor - The new interiorBackground valuepublic void autospaceRings(boolean autospace)
autospaceRings in interface PolarAxesautoscaleR - public double getDeltaR()
public void setDeltaR(double dr)
public double getDeltaTheta()
getDeltaTheta in interface PolarAxespublic void setDeltaTheta(double dtheta)
setDeltaTheta in interface PolarAxesdtheta - in degreepublic void setLabelFormat(java.lang.String formatString)
formatString - protected void drawRAxis(double dr,
double rmax,
DrawingPanel panel,
java.awt.Graphics g)
panel - g - public double drawRings(double rmax,
DrawingPanel panel,
java.awt.Graphics g)
public void drawSpokes(double rmax,
DrawingPanel panel,
java.awt.Graphics g)
drawSpokes in interface PolarAxespanel - g -