Class DrawableLegendItem

java.lang.Object
org.jfree.chart.DrawableLegendItem

public class DrawableLegendItem extends Object
Deprecated.
This class is not used by JFreeChart.
This class contains a single legend item along with position details for drawing the item on a particular chart.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private double
    Deprecated.
    The height of the item.
    private LegendItem
    Deprecated.
    The legend item (encapsulates information about the label, color and shape).
    private Point2D
    Deprecated.
    The label position within the item.
    private Line2D
    Deprecated.
    A line used to indicate the series stroke on the legend
    private Shape
    Deprecated.
    A shape used to indicate color on the legend.
    private double
    Deprecated.
    The width of the item.
    private double
    Deprecated.
    The x-coordinate for the item's location.
    private double
    Deprecated.
    The y-coordinate for the item's location.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Create a legend item.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Deprecated.
    Get the height of this item.
    Deprecated.
    Returns the legend item.
    Deprecated.
    Returns the label position.
    Deprecated.
    Returns the list.
    Deprecated.
    Get the marker.
    double
    Deprecated.
    Returns the largest X coordinate of the framing rectangle of this legend item.
    double
    Deprecated.
    Returns the largest Y coordinate of the framing rectangle of this legend item.
    double
    Deprecated.
    Get the width of this item.
    double
    Deprecated.
    Get the x-coordinate for the item's location.
    double
    Deprecated.
    Get the y-coordinate for the item's location.
    void
    setBounds(double x, double y, double width, double height)
    Deprecated.
    Set the bounds of this item.
    void
    Deprecated.
    Sets the label position.
    void
    Deprecated.
    Sets the line used to label this series.
    void
    setMarker(Shape marker)
    Deprecated.
    Set the marker.
    void
    setX(double x)
    Deprecated.
    Set the x-coordinate for the item's location.
    void
    setY(double y)
    Deprecated.
    Set the y-coordinate for the item's location.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • item

      private LegendItem item
      Deprecated.
      The legend item (encapsulates information about the label, color and shape).
    • x

      private double x
      Deprecated.
      The x-coordinate for the item's location.
    • y

      private double y
      Deprecated.
      The y-coordinate for the item's location.
    • width

      private double width
      Deprecated.
      The width of the item.
    • height

      private double height
      Deprecated.
      The height of the item.
    • marker

      private Shape marker
      Deprecated.
      A shape used to indicate color on the legend.
    • line

      private Line2D line
      Deprecated.
      A line used to indicate the series stroke on the legend
    • labelPosition

      private Point2D labelPosition
      Deprecated.
      The label position within the item.
  • Constructor Details

    • DrawableLegendItem

      public DrawableLegendItem(LegendItem item)
      Deprecated.
      Create a legend item.
      Parameters:
      item - the legend item for display.
  • Method Details

    • getItem

      public LegendItem getItem()
      Deprecated.
      Returns the legend item.
      Returns:
      The legend item.
    • getX

      public double getX()
      Deprecated.
      Get the x-coordinate for the item's location.
      Returns:
      The x-coordinate for the item's location.
    • setX

      public void setX(double x)
      Deprecated.
      Set the x-coordinate for the item's location.
      Parameters:
      x - the x-coordinate.
    • getY

      public double getY()
      Deprecated.
      Get the y-coordinate for the item's location.
      Returns:
      The y-coordinate for the item's location.
    • setY

      public void setY(double y)
      Deprecated.
      Set the y-coordinate for the item's location.
      Parameters:
      y - the y-coordinate.
    • getWidth

      public double getWidth()
      Deprecated.
      Get the width of this item.
      Returns:
      The width.
    • getHeight

      public double getHeight()
      Deprecated.
      Get the height of this item.
      Returns:
      The height.
    • getMaxX

      public double getMaxX()
      Deprecated.
      Returns the largest X coordinate of the framing rectangle of this legend item.
      Returns:
      The largest x coordinate of the framing rectangle of this legend item.
    • getMaxY

      public double getMaxY()
      Deprecated.
      Returns the largest Y coordinate of the framing rectangle of this legend item.
      Returns:
      The largest Y coordinate of the framing rectangle of this legend item.
    • getMarker

      public Shape getMarker()
      Deprecated.
      Get the marker.
      Returns:
      The shape used to indicate color on the legend for this item.
    • setMarker

      public void setMarker(Shape marker)
      Deprecated.
      Set the marker.
      Parameters:
      marker - a shape used to indicate color on the legend for this item.
    • setLine

      public void setLine(Line2D l)
      Deprecated.
      Sets the line used to label this series.
      Parameters:
      l - the new line to use.
    • getLine

      public Line2D getLine()
      Deprecated.
      Returns the list.
      Returns:
      The line.
    • getLabelPosition

      public Point2D getLabelPosition()
      Deprecated.
      Returns the label position.
      Returns:
      The label position.
    • setLabelPosition

      public void setLabelPosition(Point2D position)
      Deprecated.
      Sets the label position.
      Parameters:
      position - the label position.
    • setBounds

      public void setBounds(double x, double y, double width, double height)
      Deprecated.
      Set the bounds of this item.
      Parameters:
      x - x-coordinate for the item's location.
      y - y-coordinate for the item's location.
      width - the width of this item.
      height - the height of this item.