|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.display.axes.AbstractAxes org.opensourcephysics.display.axes.AbstractPolarAxis
public abstract class AbstractPolarAxis
AbstractPolarAxis implements methods common to all polar axes.
Field Summary | |
---|---|
protected boolean |
autospaceRings
|
protected double |
dr
|
protected double |
dtheta
|
Fields inherited from class org.opensourcephysics.display.axes.AbstractAxes |
---|
defaultBottomGutter, defaultLeftGutter, defaultRightGutter, defaultTopGutter, drawingPanel, gridcolor, interiorColor, labelFont, labelFormat, superscriptFont, titleFont, titleLine, visible |
Constructor Summary | |
---|---|
protected |
AbstractPolarAxis(DrawingPanel drawingPanel)
Creates polar axes that will display themselves within the given drawing panel. |
Method Summary | |
---|---|
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 |
setLabelFormat(java.lang.String formatString)
Method setLabelFormat |
Methods inherited from class org.opensourcephysics.display.axes.AbstractAxes |
---|
getInteriorBackground, getTitle, isVisible, resetPanelGutters, resizeFonts, setDefaultGutters, setInteriorBackground, setTitle, setVisible |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.opensourcephysics.display.axes.PolarAxes |
---|
setInteriorBackground |
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 |
Field Detail |
---|
protected double dr
protected double dtheta
protected boolean autospaceRings
Constructor Detail |
---|
protected AbstractPolarAxis(DrawingPanel drawingPanel)
drawingPanel
- DrawingPanelMethod Detail |
---|
public void autospaceRings(boolean autospace)
autospaceRings
in interface PolarAxes
autoscaleR
- public double getDeltaR()
getDeltaR
in interface PolarAxes
public void setDeltaR(double dr)
setDeltaR
in interface PolarAxes
dr
- public double getDeltaTheta()
getDeltaTheta
in interface PolarAxes
public void setDeltaTheta(double dtheta)
setDeltaTheta
in interface PolarAxes
dtheta
- 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)
drawRings
in interface PolarAxes
panel
- g
-
public void drawSpokes(double rmax, DrawingPanel panel, java.awt.Graphics g)
drawSpokes
in interface PolarAxes
panel
- g
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |