de.lmu.ifi.dbs.elki.visualization.svg
Class SVGSimpleLinearAxis

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.visualization.svg.SVGSimpleLinearAxis

public class SVGSimpleLinearAxis
extends Object

Class to draw a simple axis with tick marks on the plot.


Nested Class Summary
private static class SVGSimpleLinearAxis.ALIGNMENT
          Flag for axis label position.
 
Field Summary
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 Summary
SVGSimpleLinearAxis()
           
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CSS_AXIS

private static final String CSS_AXIS
CSS class name for the axes

See Also:
Constant Field Values

CSS_AXIS_TICK

private static final String CSS_AXIS_TICK
CSS class name for the axes

See Also:
Constant Field Values

CSS_AXIS_LABEL

private static final String CSS_AXIS_LABEL
CSS class name for the axes

See Also:
Constant Field Values
Constructor Detail

SVGSimpleLinearAxis

public SVGSimpleLinearAxis()
Method Detail

setupCSSClasses

private static void setupCSSClasses(Object owner,
                                    CSSClassManager manager,
                                    StyleLibrary style)
                             throws CSSClassManager.CSSNamingConflict
Register CSS classes with a CSSClassManager

Parameters:
owner - Owner of the CSS classes
manager - Manager to register the classes with
Throws:
CSSClassManager.CSSNamingConflict - when a name clash occurs

drawAxis

public 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 an axis with appropriate scales

Parameters:
plot - Plot object
parent - Containing element
scale - axis scale information
x1 - starting coordinate
y1 - starting coordinate
x2 - ending coordinate
y2 - ending coordinate
labels - control whether labels are printed.
righthanded - control whether to print labels on the right hand side or left hand side
style - Style library
Throws:
CSSClassManager.CSSNamingConflict - when a conflict occurs in CSS

Release 0.4.0 (2011-09-20_1324)