## org.das2.graph.GrannyTickLabeller

TickLabeller based on the formatting and bounding-box capabilities of the GrannyTextRenderer. This class by default creates a DatumFormatter for the tickDescriptor it receives, and then uses the grannyFormat method to get the label. This object is useful as-is, but provides an easy way to get complex labels (e.g. TCAs) by overriding init and getLabel.

## GrannyTickLabeller( )

## PROP_FORMATTER

## addPropertyChangeListener

addPropertyChangeListener( java.beans.PropertyChangeListener listener ) → void

### Parameters

listener - a PropertyChangeListener

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## finished

finished( ) → void

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getFormatter

getFormatter( ) → org.das2.datum.format.DatumFormatter

the formatter.

### Returns:

the formatter
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## init

init( org.das2.graph.TickVDescriptor ticks ) → void

sets the ticks and DatumFormatter before drawing.

### Parameters

ticks - a TickVDescriptor

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## labelMajorTick

labelMajorTick( java.awt.Graphics g, int tickNumber, java.awt.geom.Line2D tickLine ) → java.awt.Rectangle

### Parameters

g - a Graphics
tickNumber - an int
tickLine - a Line2D

### Returns:

java.awt.Rectangle
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## removePropertyChangeListener

removePropertyChangeListener( java.beans.PropertyChangeListener listener ) → void

### Parameters

listener - a PropertyChangeListener

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## setFormatter

setFormatter( org.das2.datum.format.DatumFormatter df ) → void

override the formatter in the TickVDescriptor.

### Parameters

df - the formatter to use

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]