public class SVGSimpleLinearAxis extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
SVGSimpleLinearAxis.ALIGNMENT
Flag for axis label position.
|
Modifier and Type | Field and Description |
---|---|
private static String |
CSS_AXIS
CSS class name for the axes
|
private static String |
CSS_AXIS_LABEL
CSS class name for the axes
|
private static String |
CSS_AXIS_TICK
CSS class name for the axes
|
Constructor and Description |
---|
SVGSimpleLinearAxis() |
Modifier and Type | Method and Description |
---|---|
static void |
drawAxis(SVGPlot plot,
Element parent,
LinearScale scale,
double x1,
double y1,
double x2,
double y2,
boolean labels,
boolean righthanded,
StyleLibrary style)
Plot an axis with appropriate scales
|
private static void |
setupCSSClasses(Object owner,
CSSClassManager manager,
StyleLibrary style)
Register CSS classes with a
CSSClassManager |
private static final String CSS_AXIS
private static final String CSS_AXIS_TICK
private static final String CSS_AXIS_LABEL
private static void setupCSSClasses(Object owner, CSSClassManager manager, StyleLibrary style) throws CSSClassManager.CSSNamingConflict
CSSClassManager
owner
- Owner of the CSS classesmanager
- Manager to register the classes withCSSClassManager.CSSNamingConflict
- when a name clash occurspublic static void drawAxis(SVGPlot plot, Element parent, LinearScale scale, double x1, double y1, double x2, double y2, boolean labels, boolean righthanded, StyleLibrary style) throws CSSClassManager.CSSNamingConflict
plot
- Plot objectparent
- Containing elementscale
- axis scale informationx1
- starting coordinatey1
- starting coordinatex2
- ending coordinatey2
- ending coordinatelabels
- control whether labels are printed.righthanded
- control whether to print labels on the right hand side
or left hand sidestyle
- Style libraryCSSClassManager.CSSNamingConflict
- when a conflict occurs in CSS