Class LegendLabel

  • All Implemented Interfaces:
    Serializable

    public class LegendLabel
    extends Object
    implements Serializable
    Class that represents a LegendLabel, which can be drawn in a specific graphics context.
    Author:
    Thomas Pfau
    See Also:
    Serialized Form
    • Field Detail

    • Constructor Detail

      • LegendLabel

        public LegendLabel​(Font labelFont,
                           Point position,
                           String Label)
        Default Constructor providing the Font, position and String used when writing this label.
        Parameters:
        labelFont - The Font to use for the label
        position - the position (lower left) to use
        Label - The content of the label.
    • Method Detail

      • draw

        public void draw​(org.apache.batik.svggen.SVGGraphics2D svg)
        Draw the Label in the given SVGGraphics2D context
        Parameters:
        svg - the SVGGraphics2D context to draw in
      • draw

        public void draw​(org.apache.batik.svggen.SVGGraphics2D svg,
                         String Label)
        Draw the Label in the given SVGGraphics2D context
        Parameters:
        svg - the SVGGraphics2D context to draw in
        Label - The label to write in the context.