Documentation of 'com.mxgraph.shape.mxCurveLabelShape' Java class
mxCurveLabelShape
com.mxgraph.shape

Class mxCurveLabelShape

  • All Implemented Interfaces:
    mxITextShape


    public class mxCurveLabelShape
    extends java.lang.Object
    implements mxITextShape
    Draws the edge label along a curve derived from the curve describing the edge's path
    • Field Detail

      • LABEL_BUFFER

        public static double LABEL_BUFFER
        Buffer at both ends of the label
      • CURVE_TEXT_STRETCH_FACTOR

        public static double CURVE_TEXT_STRETCH_FACTOR
        Factor by which text on the inside of curve is stretched
      • INVALID_GLYPH_BOUNDS

        public static mxRectangle INVALID_GLYPH_BOUNDS
        Indicates that a glyph does not have valid drawing bounds, usually because it is not visible
      • centerVisibleIndex

        public int centerVisibleIndex
        The index of the central glyph of the label that is visible
      • FONT_FRACTIONALMETRICS

        public static java.lang.Object FONT_FRACTIONALMETRICS
        Specifies if image aspect should be preserved in drawImage. Default is true.
      • rtlGlyphVectors

        public java.awt.font.GlyphVector[] rtlGlyphVectors
        Cache of BIDI glyph vectors
      • frc

        public static java.awt.font.FontRenderContext frc
        Shared FRC for font size calculations
    • Constructor Detail

    • Method Detail

      • getRotationEnabled

        public boolean getRotationEnabled()
      • setRotationEnabled

        public void setRotationEnabled(boolean value)
      • updateLabelBounds

        public mxRectangle updateLabelBounds(java.lang.String label,
                                             java.util.Map<java.lang.String,java.lang.Object> style)
        Updates the cached position and size of each glyph in the edge label.
        Parameters:
        label - the entire string of the label.
        style - the edge style
      • intersectsRect

        public boolean intersectsRect(java.awt.Rectangle rect)
        Returns whether or not the rectangle passed in hits any part of this curve.
        Parameters:
        rect - the rectangle to detect for a hit
        Returns:
        whether or not the rectangle hits this curve
      • getCurve

        public mxCurve getCurve()
        Returns:
        the curve
      • setCurve

        public void setCurve(mxCurve curve)
        Parameters:
        curve - the curve to set
      • getCenterVisiblePosition

        public mxRectangle getCenterVisiblePosition()
        Returns the drawing bounds of the central indexed visible glyph
        Returns:
        the centerVisibleIndex

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.