DrawableAxes, Drawablepublic class CustomAxes extends AbstractAxes implements DrawableAxes
defaultBottomGutter, defaultLeftGutter, defaultRightGutter, defaultTopGutter, drawingPanel, gridcolor, interiorColor, labelFont, labelFormat, superscriptFont, titleFont, titleLine, visible| Constructor | Description |
|---|---|
CustomAxes(PlottingPanel panel) |
Constructor CustomAxes
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addDrawable(Drawable drawable) |
Adds a drawable object to the drawable list.
|
void |
draw(DrawingPanel panel,
java.awt.Graphics g) |
Draws the axes in a drawing panel.
|
java.lang.String |
getTitle() |
Gets the title.
|
java.lang.String |
getXLabel() |
Gets the x axis label.
|
java.lang.String |
getYLabel() |
Gets the y axis label.
|
void |
setInteriorBackground(java.awt.Color color) |
Sets the interior background color.
|
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 |
setTitle(java.lang.String s,
java.lang.String font_name) |
Set a title that will be drawn within the drawing panel.
|
void |
setVisible(boolean isVisible) |
Sets the visibility of the axes.
|
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.
|
getInteriorBackground, isVisible, resetPanelGutters, resizeFonts, setDefaultGuttersgetInteriorBackground, resizeFontspublic CustomAxes(PlottingPanel panel)
panel - public void setXLabel(java.lang.String s,
java.lang.String font_name)
setXLabel in interface DrawableAxess - the labelfont_name - an optional font namepublic void setYLabel(java.lang.String s,
java.lang.String font_name)
setYLabel in interface DrawableAxess - the labelfont_name - an optional font namepublic java.lang.String getXLabel()
getXLabel in interface DrawableAxespublic java.lang.String getYLabel()
getYLabel in interface DrawableAxespublic java.lang.String getTitle()
getTitle in interface DrawableAxesgetTitle in class AbstractAxespublic void setTitle(java.lang.String s,
java.lang.String font_name)
setTitle in interface DrawableAxessetTitle in class AbstractAxess - the labelfont_name - an optional font namepublic void setXLog(boolean isLog)
isLog - true for log scale; false otherwisepublic void setYLog(boolean isLog)
isLog - true for log scale; false otherwisepublic void setVisible(boolean isVisible)
setVisible in interface DrawableAxessetVisible in class AbstractAxesisVisible - true if the axes are visiblepublic void setInteriorBackground(java.awt.Color color)
setInteriorBackground in interface DrawableAxessetInteriorBackground in class AbstractAxescolor - public void setShowMajorXGrid(boolean showGrid)
setShowMajorXGrid in interface DrawableAxesshowGrid - public void setShowMinorXGrid(boolean showGrid)
setShowMinorXGrid in interface DrawableAxesshowGrid - public void setShowMajorYGrid(boolean showGrid)
setShowMajorYGrid in interface DrawableAxesshowGrid - public void setShowMinorYGrid(boolean showGrid)
setShowMinorYGrid in interface DrawableAxesshowGrid - public void addDrawable(Drawable drawable)
drawable - public void draw(DrawingPanel panel, java.awt.Graphics g)