|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensourcephysics.display.axes.AbstractAxes
org.opensourcephysics.display.axes.AbstractPolarAxis
org.opensourcephysics.display.axes.PolarType2
public class PolarType2
| Field Summary |
|---|
| Fields inherited from class org.opensourcephysics.display.axes.AbstractPolarAxis |
|---|
autospaceRings, dr, 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 | |
|---|---|
PolarType2(PlottingPanel panel)
Constructs polar coordinate axes for the given panel. |
|
PolarType2(PlottingPanel panel,
java.lang.String rLabel,
java.lang.String phiLabel,
double phiOffset)
Constructs polar coordinate axes for the given panel. |
|
| Method Summary | |
|---|---|
void |
draw(DrawingPanel panel,
java.awt.Graphics g)
Draws a representation of an object in a drawing panel. |
java.lang.String |
getXLabel()
Gets the x axis label. |
java.lang.String |
getYLabel()
Gets the y axis label. |
void |
setShowMajorXGrid(boolean showGrid)
Shows a grid line for every x axis major tickmark. |
void |
setShowMajorYGrid(boolean showGrid)
Shows a grid line for every y axis major tickmark. |
void |
setShowMinorXGrid(boolean showGrid)
Shows a grid line for every x axis minor tickmark. |
void |
setShowMinorYGrid(boolean showGrid)
Shows a grid line for every y axis minor tickmark. |
void |
setXLabel(java.lang.String s,
java.lang.String font_name)
Sets the x label of the axes. |
void |
setXLog(boolean isLog)
Sets the x axis to linear or logarithmic. |
void |
setYLabel(java.lang.String s,
java.lang.String font_name)
Sets the y label of the axes. |
void |
setYLog(boolean isLog)
Sets the y axis to linear or logarithmic. |
| Methods inherited from class org.opensourcephysics.display.axes.AbstractPolarAxis |
|---|
autospaceRings, drawRAxis, drawRings, drawSpokes, getDeltaR, getDeltaTheta, setDeltaR, setDeltaTheta, 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 |
|---|
autospaceRings, drawRings, drawSpokes, getDeltaR, getDeltaTheta, setDeltaR, setDeltaTheta, setInteriorBackground |
| Methods inherited from interface org.opensourcephysics.display.axes.DrawableAxes |
|---|
getInteriorBackground, getTitle, resizeFonts, setTitle, setVisible |
| Constructor Detail |
|---|
public PolarType2(PlottingPanel panel,
java.lang.String rLabel,
java.lang.String phiLabel,
double phiOffset)
panel - PlottingPanelrLabel - phiLabel - phiOffset - double offset the phi coordinatepublic PolarType2(PlottingPanel panel)
panel - PlottingPanel| Method Detail |
|---|
public void setXLabel(java.lang.String s,
java.lang.String font_name)
setXLabel in interface DrawableAxess - the labelfont_name - an optional font name
public void setYLabel(java.lang.String s,
java.lang.String font_name)
setYLabel in interface DrawableAxeslabel - the labels - an optional font namepublic java.lang.String getXLabel()
getXLabel in interface DrawableAxespublic java.lang.String getYLabel()
getYLabel in interface DrawableAxespublic void setXLog(boolean isLog)
isLog - true for log scale; false otherwisepublic void setYLog(boolean isLog)
isLog - true for log scale; false otherwisepublic void setShowMajorXGrid(boolean showGrid)
setShowMajorXGrid in interface DrawableAxespublic void setShowMinorXGrid(boolean showGrid)
setShowMinorXGrid in interface DrawableAxespublic void setShowMajorYGrid(boolean showGrid)
setShowMajorYGrid in interface DrawableAxespublic void setShowMinorYGrid(boolean showGrid)
setShowMinorYGrid in interface DrawableAxes
public void draw(DrawingPanel panel,
java.awt.Graphics g)
draw in interface Drawablepanel - g -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||