<h2>org.das2.graph.GrannyTickLabeller</h2><p>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.</p>
<h2>GrannyTickLabeller( )</h2>
<p></p>

<hr>
<a name="PROP_FORMATTER"></a>
<h2>PROP_FORMATTER</h2>
<p></p>

<hr>
<a name="addPropertyChangeListener"></a>
<h2>addPropertyChangeListener</h2>
addPropertyChangeListener( <a href='https://docs.oracle.com/javase/8/docs/api/java/beans/PropertyChangeListener.html'>java.beans.PropertyChangeListener</a> listener ) &rarr; void

<p></p>

<h3>Parameters</h3>
listener - a PropertyChangeListener

<h3>Returns:</h3>
void (returns nothing)

<br><br>
<a href="https://github.com/autoplot/dev/search?q=addPropertyChangeListener&unscoped_q=addPropertyChangeListener">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/graph/GrannyTickLabeller.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/graph/GrannyTickLabeller.html#addPropertyChangeListener">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCore/src/org/das2/graph/GrannyTickLabeller.java">[view source]</a>
<br>
<br>
<hr>
<a name="finished"></a>
<h2>finished</h2>
finished(  ) &rarr; void

<p></p>

<h3>Returns:</h3>
void (returns nothing)

<br><br>
<a href="https://github.com/autoplot/dev/search?q=finished&unscoped_q=finished">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/graph/GrannyTickLabeller.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/graph/GrannyTickLabeller.html#finished">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCore/src/org/das2/graph/GrannyTickLabeller.java">[view source]</a>
<br>
<br>
<hr>
<a name="getFormatter"></a>
<h2>getFormatter</h2>
getFormatter(  ) &rarr; <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/datum/format/DatumFormatter.html'>org.das2.datum.format.DatumFormatter</a>

<p>the formatter.</p>

<h3>Returns:</h3>
the formatter
<br><br>
<a href="https://github.com/autoplot/dev/search?q=getFormatter&unscoped_q=getFormatter">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/graph/GrannyTickLabeller.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/graph/GrannyTickLabeller.html#getFormatter">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCore/src/org/das2/graph/GrannyTickLabeller.java">[view source]</a>
<br>
<br>
<hr>
<a name="init"></a>
<h2>init</h2>
init( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/graph/TickVDescriptor.html'>org.das2.graph.TickVDescriptor</a> ticks ) &rarr; void

<p>sets the ticks and DatumFormatter before drawing.</p>

<h3>Parameters</h3>
ticks - a TickVDescriptor

<h3>Returns:</h3>
void (returns nothing)

<br><br>
<a href="https://github.com/autoplot/dev/search?q=init&unscoped_q=init">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/graph/GrannyTickLabeller.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/graph/GrannyTickLabeller.html#init">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCore/src/org/das2/graph/GrannyTickLabeller.java">[view source]</a>
<br>
<br>
<hr>
<a name="labelMajorTick"></a>
<h2>labelMajorTick</h2>
labelMajorTick( <a href='https://docs.oracle.com/javase/8/docs/api/java/awt/Graphics.html'>java.awt.Graphics</a> g, int tickNumber, <a href='https://docs.oracle.com/javase/8/docs/api/java/awt/geom/Line2D.html'>java.awt.geom.Line2D</a> tickLine ) &rarr; <a href='https://docs.oracle.com/javase/8/docs/api/java/awt/Rectangle.html'>java.awt.Rectangle</a>

<p></p>

<h3>Parameters</h3>
g - a Graphics
<br>
tickNumber - an int
<br>
tickLine - a Line2D

<h3>Returns:</h3>
java.awt.Rectangle

<br><br>
<a href="https://github.com/autoplot/dev/search?q=labelMajorTick&unscoped_q=labelMajorTick">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/graph/GrannyTickLabeller.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/graph/GrannyTickLabeller.html#labelMajorTick">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCore/src/org/das2/graph/GrannyTickLabeller.java">[view source]</a>
<br>
<br>
<hr>
<a name="removePropertyChangeListener"></a>
<h2>removePropertyChangeListener</h2>
removePropertyChangeListener( <a href='https://docs.oracle.com/javase/8/docs/api/java/beans/PropertyChangeListener.html'>java.beans.PropertyChangeListener</a> listener ) &rarr; void

<p></p>

<h3>Parameters</h3>
listener - a PropertyChangeListener

<h3>Returns:</h3>
void (returns nothing)

<br><br>
<a href="https://github.com/autoplot/dev/search?q=removePropertyChangeListener&unscoped_q=removePropertyChangeListener">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/graph/GrannyTickLabeller.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/graph/GrannyTickLabeller.html#removePropertyChangeListener">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCore/src/org/das2/graph/GrannyTickLabeller.java">[view source]</a>
<br>
<br>
<hr>
<a name="setFormatter"></a>
<h2>setFormatter</h2>
setFormatter( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/datum/format/DatumFormatter.html'>org.das2.datum.format.DatumFormatter</a> df ) &rarr; void

<p>override the formatter in the TickVDescriptor.</p>

<h3>Parameters</h3>
df - the formatter to use

<h3>Returns:</h3>
void (returns nothing)

<br><br>
<a href="https://github.com/autoplot/dev/search?q=setFormatter&unscoped_q=setFormatter">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/das2/graph/GrannyTickLabeller.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/das2/graph/GrannyTickLabeller.html#setFormatter">[view on old javadoc]</a>
 <a href="https://saturn.physics.uiowa.edu/svn/das2/dasCore/community/autoplot2011/trunk/dasCore/src/org/das2/graph/GrannyTickLabeller.java">[view source]</a>
<br>
<br>