public class PolarType1 extends AbstractPolarAxis implements PolarAxes, Dimensioned
autospaceRings, dr, dtheta, interiorColor
defaultBottomGutter, defaultLeftGutter, defaultRightGutter, defaultTopGutter, drawingPanel, gridcolor, labelFont, labelFormat, superscriptFont, titleFont, titleLine, visible
Constructor and Description |
---|
PolarType1(PlottingPanel panel)
Constructs polar coordinate axes for the given panel.
|
PolarType1(PlottingPanel panel,
java.lang.String rLabel,
java.lang.String phiLabel,
double phiOffset)
Constructs polar coordinate axes for the given panel.
|
Modifier and Type | Method and Description |
---|---|
void |
draw(DrawingPanel panel,
java.awt.Graphics g)
Draws a representation of an object in a drawing panel.
|
java.awt.Dimension |
getInterior(DrawingPanel panel)
Gets the interior dimension of the drawing panel in pixel units.
|
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.
|
autospaceRings, drawRAxis, drawRings, drawSpokes, getDeltaR, getDeltaTheta, setDeltaR, setDeltaTheta, setInteriorBackground, setLabelFormat
getInteriorBackground, getTitle, isVisible, resetPanelGutters, resizeFonts, setDefaultGutters, setTitle, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
autospaceRings, drawRings, drawSpokes, getDeltaR, getDeltaTheta, setDeltaR, setDeltaTheta, setInteriorBackground
getTitle, resizeFonts, setTitle, setVisible
public PolarType1(PlottingPanel panel, java.lang.String rLabel, java.lang.String phiLabel, double phiOffset)
panel
- PlottingPanelrLabel
- phiLabel
- phiOffset
- double offset the phi coordinatepublic PolarType1(PlottingPanel panel)
panel
- PlottingPanelpublic java.awt.Dimension getInterior(DrawingPanel panel)
getInterior
in interface Dimensioned
panel
- the drawing panel that requested the interiorpublic void setXLabel(java.lang.String s, java.lang.String font_name)
setXLabel
in interface DrawableAxes
s
- the labelfont_name
- an optional font namepublic void setYLabel(java.lang.String s, java.lang.String font_name)
setYLabel
in interface DrawableAxes
s
- the labelfont_name
- an optional font namepublic java.lang.String getXLabel()
getXLabel
in interface DrawableAxes
public java.lang.String getYLabel()
getYLabel
in interface DrawableAxes
public 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 DrawableAxes
public void setShowMinorXGrid(boolean showGrid)
setShowMinorXGrid
in interface DrawableAxes
public void setShowMajorYGrid(boolean showGrid)
setShowMajorYGrid
in interface DrawableAxes
public void setShowMinorYGrid(boolean showGrid)
setShowMinorYGrid
in interface DrawableAxes
public void draw(DrawingPanel panel, java.awt.Graphics g)