DrawableAxes, DrawableAbstractPolarAxis, CartesianType1, CartesianType2, CartesianType3, CustomAxespublic abstract class AbstractAxes extends java.lang.Object implements DrawableAxes
Copyright (c) 2017
| Modifier and Type | Field | Description |
|---|---|---|
protected int |
defaultBottomGutter |
|
protected int |
defaultLeftGutter |
default gutters.
|
protected int |
defaultRightGutter |
|
protected int |
defaultTopGutter |
|
protected DrawingPanel |
drawingPanel |
|
protected java.awt.Color |
gridcolor |
|
protected java.awt.Color |
interiorColor |
|
protected java.awt.Font |
labelFont |
|
protected java.text.DecimalFormat |
labelFormat |
|
protected java.awt.Font |
superscriptFont |
|
protected java.awt.Font |
titleFont |
|
protected DrawableTextLine |
titleLine |
|
protected boolean |
visible |
| Constructor | Description |
|---|---|
AbstractAxes(DrawingPanel drawingPanel) |
Creates axes that will display themselves within the given drawing panel.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.awt.Color |
getInteriorBackground() |
Gets the color of the interior of the axes.
|
java.lang.String |
getTitle() |
Gets the title.
|
boolean |
isVisible() |
Gets the visibility of the axes.
|
void |
resetPanelGutters() |
|
void |
resizeFonts(double factor,
DrawingPanel panel) |
Resizes fonts by the specified factor.
|
void |
setDefaultGutters(int left,
int top,
int right,
int bottom) |
Sets gutters that give the best appearance.
|
void |
setInteriorBackground(java.awt.Color color) |
Sets the interior background color.
|
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.
|
getXLabel, getYLabel, setShowMajorXGrid, setShowMajorYGrid, setShowMinorXGrid, setShowMinorYGrid, setXLabel, setYLabelprotected int defaultLeftGutter
protected int defaultTopGutter
protected int defaultRightGutter
protected int defaultBottomGutter
protected boolean visible
protected java.awt.Font titleFont
protected java.awt.Font labelFont
protected java.awt.Font superscriptFont
protected java.text.DecimalFormat labelFormat
protected java.awt.Color gridcolor
protected java.awt.Color interiorColor
protected DrawableTextLine titleLine
protected DrawingPanel drawingPanel
public AbstractAxes(DrawingPanel drawingPanel)
drawingPanel - DrawingPanelpublic void setDefaultGutters(int left,
int top,
int right,
int bottom)
left - top - right - bottom - public void resetPanelGutters()
public void setVisible(boolean isVisible)
setVisible in interface DrawableAxesisVisible - true if the axes are visiblepublic boolean isVisible()
public void setInteriorBackground(java.awt.Color color)
setInteriorBackground in interface DrawableAxescolor - The new interiorBackground valuepublic java.awt.Color getInteriorBackground()
getInteriorBackground in interface DrawableAxespublic void resizeFonts(double factor,
DrawingPanel panel)
resizeFonts in interface DrawableAxesfactor - the factorpanel - the drawing panel on which these axes are drawnpublic java.lang.String getTitle()
getTitle in interface DrawableAxespublic void setTitle(java.lang.String s,
java.lang.String font_name)
setTitle in interface DrawableAxess - the labelfont_name - an optional font name