<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">java.lang.Object</A>
<IMGSRC="../../../resources/inherit.gif"ALT="extended by "><B>com.mxgraph.shape.mxCurveLabelShape</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B><DD><AHREF="../../../com/mxgraph/shape/mxITextShape.html"title="interface in com.mxgraph.shape">mxITextShape</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <B>mxCurveLabelShape</B><DT>extends <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A><DT>implements <AHREF="../../../com/mxgraph/shape/mxITextShape.html"title="interface in com.mxgraph.shape">mxITextShape</A></DL>
</PRE>
<P>
Draws the edge label along a curve derived from the curve describing
<TD><CODE><B><AHREF="../../../com/mxgraph/shape/mxCurveLabelShape.LabelGlyphCache.html"title="class in com.mxgraph.shape">mxCurveLabelShape.LabelGlyphCache</A></B></CODE>
<BR>
Utility class to describe the characteristics of each glyph of a branch
<TD><CODE><B><AHREF="../../../com/mxgraph/shape/mxCurveLabelShape.LabelPosition.html"title="class in com.mxgraph.shape">mxCurveLabelShape.LabelPosition</A></B></CODE>
<BR>
Utility class that stores details of how the label is positioned
on the curve</TD>
</TR>
</TABLE>
<!-- =========== FIELD SUMMARY =========== -->
<CODE>static <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A></CODE></FONT></TD>
<CODE>static <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/font/FontRenderContext.html?is-external=true"title="class or interface in java.awt.font">FontRenderContext</A></CODE></FONT></TD>
<CODE>protected <AHREF="../../../com/mxgraph/shape/mxCurveLabelShape.LabelGlyphCache.html"title="class in com.mxgraph.shape">mxCurveLabelShape.LabelGlyphCache</A>[]</CODE></FONT></TD>
<CODE>protected <AHREF="../../../com/mxgraph/shape/mxCurveLabelShape.LabelPosition.html"title="class in com.mxgraph.shape">mxCurveLabelShape.LabelPosition</A></CODE></FONT></TD>
<CODE>protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Font.html?is-external=true"title="class or interface in java.awt">Font</A></CODE></FONT></TD>
<CODE>protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/List.html?is-external=true"title="class or interface in java.util">List</A><<AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A>></CODE></FONT></TD>
<CODE>protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A></CODE></FONT></TD>
<CODE> <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/font/GlyphVector.html?is-external=true"title="class or interface in java.awt.font">GlyphVector</A>[]</CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/shape/mxCurveLabelShape.html#mxCurveLabelShape(com.mxgraph.view.mxCellState, com.mxgraph.util.mxCurve)">mxCurveLabelShape</A></B>(<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state,
<AHREF="../../../com/mxgraph/util/mxCurve.html"title="class in com.mxgraph.util">mxCurve</A> value)</CODE>
<TD><CODE><B><AHREF="../../../com/mxgraph/shape/mxCurveLabelShape.html#calculationLabelPosition(java.util.Map, java.lang.String)">calculationLabelPosition</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true"title="class or interface in java.util">Map</A><<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A>,<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A>> style,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> label)</CODE>
<BR>
Hook method to override how the label is positioned on the curve</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/shape/mxCurveLabelShape.html#intersectsRect(java.awt.Rectangle)">intersectsRect</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Rectangle.html?is-external=true"title="class or interface in java.awt">Rectangle</A> rect)</CODE>
<BR>
Returns whether or not the rectangle passed in hits any part of this
<TD><CODE><B><AHREF="../../../com/mxgraph/shape/mxCurveLabelShape.html#paintShape(com.mxgraph.canvas.mxGraphics2DCanvas, java.lang.String, com.mxgraph.view.mxCellState, java.util.Map)">paintShape</A></B>(<AHREF="../../../com/mxgraph/canvas/mxGraphics2DCanvas.html"title="class in com.mxgraph.canvas">mxGraphics2DCanvas</A> canvas,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> text,
<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true"title="class or interface in java.util">Map</A><<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A>,<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A>> style)</CODE>
<TD><CODE><B><AHREF="../../../com/mxgraph/shape/mxCurveLabelShape.html#postprocessGlyph(com.mxgraph.util.mxCurve, java.lang.String, int, double)">postprocessGlyph</A></B>(<AHREF="../../../com/mxgraph/util/mxCurve.html"title="class in com.mxgraph.util">mxCurve</A> curve,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> label,
int j,
double currentPos)</CODE>
<BR>
Hook for sub-classers to perform additional processing on
<TD><CODE><B><AHREF="../../../com/mxgraph/shape/mxCurveLabelShape.html#setCurve(com.mxgraph.util.mxCurve)">setCurve</A></B>(<AHREF="../../../com/mxgraph/util/mxCurve.html"title="class in com.mxgraph.util">mxCurve</A> curve)</CODE>
<CODE> <AHREF="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/shape/mxCurveLabelShape.html#updateLabelBounds(java.lang.String, java.util.Map)">updateLabelBounds</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> label,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true"title="class or interface in java.util">Map</A><<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A>,<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A>> style)</CODE>
<BR>
Updates the cached position and size of each glyph in the edge label.</TD>
<THALIGN="left"><B>Methods inherited from class java.lang.<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A></B></TH>
</TR>
<TRBGCOLOR="white"CLASS="TableRowColor">
<TD><CODE><AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()"title="class or interface in java.lang">clone</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)"title="class or interface in java.lang">equals</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()"title="class or interface in java.lang">finalize</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()"title="class or interface in java.lang">getClass</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()"title="class or interface in java.lang">hashCode</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()"title="class or interface in java.lang">notify</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()"title="class or interface in java.lang">notifyAll</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()"title="class or interface in java.lang">toString</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()"title="class or interface in java.lang">wait</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)"title="class or interface in java.lang">wait</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)"title="class or interface in java.lang">wait</A></CODE></TD>
protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A><B>lastValue</B></PRE>
<DL>
<DD>Cache of the label text
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="lastFont"><!----></A><H3>
lastFont</H3>
<PRE>
protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Font.html?is-external=true"title="class or interface in java.awt">Font</A><B>lastFont</B></PRE>
<DL>
<DD>Cache of the label font
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="lastPoints"><!----></A><H3>
lastPoints</H3>
<PRE>
protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/List.html?is-external=true"title="class or interface in java.util">List</A><<AHREF="../../../com/mxgraph/util/mxPoint.html"title="class in com.mxgraph.util">mxPoint</A>><B>lastPoints</B></PRE>
<DL>
<DD>Cache of the last set of guide points that this label was calculated for
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="curve"><!----></A><H3>
curve</H3>
<PRE>
protected <AHREF="../../../com/mxgraph/util/mxCurve.html"title="class in com.mxgraph.util">mxCurve</A><B>curve</B></PRE>
<DL>
<DD>Cache of the points between which drawing straight lines views as a
curve
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="state"><!----></A><H3>
state</H3>
<PRE>
protected <AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A><B>state</B></PRE>
<DL>
<DD>Cache the state associated with this shape
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="labelGlyphs"><!----></A><H3>
labelGlyphs</H3>
<PRE>
protected <AHREF="../../../com/mxgraph/shape/mxCurveLabelShape.LabelGlyphCache.html"title="class in com.mxgraph.shape">mxCurveLabelShape.LabelGlyphCache</A>[] <B>labelGlyphs</B></PRE>
<DL>
<DD>Cache of information describing characteristics relating to drawing
each glyph of this label
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="labelSize"><!----></A><H3>
labelSize</H3>
<PRE>
protected double <B>labelSize</B></PRE>
<DL>
<DD>Cache of the total length of the branch label
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="labelBounds"><!----></A><H3>
labelBounds</H3>
<PRE>
protected <AHREF="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</A><B>labelBounds</B></PRE>
<DL>
<DD>Cache of the bounds of the label
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="labelPosition"><!----></A><H3>
labelPosition</H3>
<PRE>
protected <AHREF="../../../com/mxgraph/shape/mxCurveLabelShape.LabelPosition.html"title="class in com.mxgraph.shape">mxCurveLabelShape.LabelPosition</A><B>labelPosition</B></PRE>
<DL>
<DD>ADT to encapsulate label positioning information
public static double <B>CURVE_TEXT_STRETCH_FACTOR</B></PRE>
<DL>
<DD>Factor by which text on the inside of curve is stretched
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="INVALID_GLYPH_BOUNDS"><!----></A><H3>
INVALID_GLYPH_BOUNDS</H3>
<PRE>
public static <AHREF="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</A><B>INVALID_GLYPH_BOUNDS</B></PRE>
<DL>
<DD>Indicates that a glyph does not have valid drawing bounds, usually
because it is not visible
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="centerVisibleIndex"><!----></A><H3>
centerVisibleIndex</H3>
<PRE>
public int <B>centerVisibleIndex</B></PRE>
<DL>
<DD>The index of the central glyph of the label that is visible
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="FONT_FRACTIONALMETRICS"><!----></A><H3>
FONT_FRACTIONALMETRICS</H3>
<PRE>
public static <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A><B>FONT_FRACTIONALMETRICS</B></PRE>
<DL>
<DD>Specifies if image aspect should be preserved in drawImage. Default is true.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="rtlGlyphVectors"><!----></A><H3>
rtlGlyphVectors</H3>
<PRE>
public <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/font/GlyphVector.html?is-external=true"title="class or interface in java.awt.font">GlyphVector</A>[] <B>rtlGlyphVectors</B></PRE>
<DL>
<DD>Cache of BIDI glyph vectors
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="frc"><!----></A><H3>
frc</H3>
<PRE>
public static <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/font/FontRenderContext.html?is-external=true"title="class or interface in java.awt.font">FontRenderContext</A><B>frc</B></PRE>
public void <B>paintShape</B>(<AHREF="../../../com/mxgraph/canvas/mxGraphics2DCanvas.html"title="class in com.mxgraph.canvas">mxGraphics2DCanvas</A> canvas,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> text,
<AHREF="../../../com/mxgraph/view/mxCellState.html"title="class in com.mxgraph.view">mxCellState</A> state,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true"title="class or interface in java.util">Map</A><<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A>,<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A>> style)</PRE>
<DL>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><AHREF="../../../com/mxgraph/shape/mxITextShape.html#paintShape(com.mxgraph.canvas.mxGraphics2DCanvas, java.lang.String, com.mxgraph.view.mxCellState, java.util.Map)">paintShape</A></CODE> in interface <CODE><AHREF="../../../com/mxgraph/shape/mxITextShape.html"title="interface in com.mxgraph.shape">mxITextShape</A></CODE></DL>
public <AHREF="../../../com/mxgraph/util/mxRectangle.html"title="class in com.mxgraph.util">mxRectangle</A><B>updateLabelBounds</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> label,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true"title="class or interface in java.util">Map</A><<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A>,<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A>> style)</PRE>
<DL>
<DD>Updates the cached position and size of each glyph in the edge label.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>label</CODE> - the entire string of the label.<DD><CODE>style</CODE> - the edge style</DL>
protected void <B>postprocessGlyph</B>(<AHREF="../../../com/mxgraph/util/mxCurve.html"title="class in com.mxgraph.util">mxCurve</A> curve,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> label,
int j,
double currentPos)</PRE>
<DL>
<DD>Hook for sub-classers to perform additional processing on
each glyph
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>curve</CODE> - The curve object holding the label curve<DD><CODE>label</CODE> - the text label of the curve<DD><CODE>j</CODE> - the index of the label<DD><CODE>currentPos</CODE> - the distance along the label curve the glyph is</DL>
public boolean <B>intersectsRect</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Rectangle.html?is-external=true"title="class or interface in java.awt">Rectangle</A> rect)</PRE>
<DL>
<DD>Returns whether or not the rectangle passed in hits any part of this
curve.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>rect</CODE> - the rectangle to detect for a hit
<DT><B>Returns:</B><DD>whether or not the rectangle hits this curve</DL>
protected void <B>calculationLabelPosition</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Map.html?is-external=true"title="class or interface in java.util">Map</A><<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A>,<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A>> style,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> label)</PRE>
<DL>
<DD>Hook method to override how the label is positioned on the curve
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>style</CODE> - the style of the curve<DD><CODE>label</CODE> - the string label to be displayed on the curve</DL>
</DD>
</DL>
<HR>
<ANAME="getCurve()"><!----></A><H3>
getCurve</H3>
<PRE>
public <AHREF="../../../com/mxgraph/util/mxCurve.html"title="class in com.mxgraph.util">mxCurve</A><B>getCurve</B>()</PRE>