| java.lang.Object | ||
| ↳ | org.jfree.chart.block.AbstractBlock | |
| ↳ | org.jfree.chart.title.LegendGraphic | |
The graphical item within a legend item.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new legend graphic. 
  
   | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Arranges the contents of the block, within the given constraints, and
 returns the block size. 
  
   | |||||||||||
Returns a clone of this  
  
  LegendGraphic instance. | |||||||||||
Draws the graphic item within the specified area. 
  
   | |||||||||||
Draws the block within the specified area. 
  
   | |||||||||||
Tests this  
  
  LegendGraphic instance for equality with an
 arbitrary object. | |||||||||||
Returns the paint used to fill the shape. 
  
   | |||||||||||
Returns the transformer used when the fill paint is an instance of
  
  
  GradientPaint. | |||||||||||
Returns the line centered about (0, 0). 
  
   | |||||||||||
Returns the line paint. 
  
   | |||||||||||
Returns the line stroke. 
  
   | |||||||||||
Returns the outline paint. 
  
   | |||||||||||
Returns the outline stroke. 
  
   | |||||||||||
Returns the shape. 
  
   | |||||||||||
Returns the shape anchor. 
  
   | |||||||||||
Returns the shape location. 
  
   | |||||||||||
Returns a hash code for this instance. 
  
   | |||||||||||
Returns the flag that controls whether or not the line is visible. 
  
   | |||||||||||
Returns a flag that controls whether or not the shapes
 are filled. 
  
   | |||||||||||
Returns a flag that controls whether the shape outline is visible. 
  
   | |||||||||||
Returns a flag that controls whether or not the shape
 is visible. 
  
   | |||||||||||
Sets the paint used to fill the shape. 
  
   | |||||||||||
Sets the transformer used when the fill paint is an instance of
  
  
  GradientPaint. | |||||||||||
Sets the line. 
  
   | |||||||||||
Sets the line paint. 
  
   | |||||||||||
Sets the line stroke. 
  
   | |||||||||||
Sets the flag that controls whether or not the line is visible. 
  
   | |||||||||||
Sets the outline paint. 
  
   | |||||||||||
Sets the outline stroke. 
  
   | |||||||||||
Sets the shape. 
  
   | |||||||||||
Sets the shape anchor. 
  
   | |||||||||||
Sets a flag that controls whether or not the shape is
 filled. 
  
   | |||||||||||
Sets the shape location. 
  
   | |||||||||||
Sets a flag that controls whether or not the shape outline
 is visible. 
  
   | |||||||||||
Sets a flag that controls whether or not the shape is
 visible. 
  
   | |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Performs the layout with no constraint, so the content size is
 determined by the bounds of the shape and/or line drawn to represent
 the series. 
  
   | |||||||||||
| 
  [Expand]
   Inherited Methods  | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
   
From class
  org.jfree.chart.block.AbstractBlock
 | |||||||||||
   
From class
  java.lang.Object
 | |||||||||||
   
From interface
  org.jfree.chart.block.Block
 | |||||||||||
Creates a new legend graphic.
| shape | the shape (null not permitted). | 
        
|---|---|
| fillPaint | the fill paint (null not permitted).
 | 
        
Arranges the contents of the block, within the given constraints, and returns the block size.
| g2 | the graphics device. | 
|---|---|
| constraint | the constraint (null not permitted). | 
        
null).
Returns a clone of this LegendGraphic instance.
LegendGraphic instance.| CloneNotSupportedException | if there is a problem cloning. | 
|---|
Draws the graphic item within the specified area.
| g2 | the graphics device. | 
|---|---|
| area | the area. | 
Draws the block within the specified area.
| g2 | the graphics device. | 
|---|---|
| area | the area. | 
| params | ignored (null permitted). | 
        
null.
Tests this LegendGraphic instance for equality with an
 arbitrary object.
| obj | the object (null permitted). | 
        
|---|
Returns the transformer used when the fill paint is an instance of
 GradientPaint.
null).Returns a hash code for this instance.
Returns the flag that controls whether or not the line is visible.
Returns a flag that controls whether or not the shapes are filled.
Returns a flag that controls whether the shape outline is visible.
Returns a flag that controls whether or not the shape is visible.
Sets the transformer used when the fill paint is an instance of
 GradientPaint.
| transformer | the transformer (null not permitted). | 
        
|---|
Sets the line. A Shape is used here, because then you can use Line2D, GeneralPath or any other Shape to represent the line.
| line | the line. | 
|---|
Sets the flag that controls whether or not the line is visible.
| visible | the flag. | 
|---|
Sets the shape anchor. This defines a point on the shapes bounding rectangle that will be used to align the shape to a location.
| anchor | the anchor (null not permitted). | 
        
|---|
Sets a flag that controls whether or not the shape is filled.
| filled | the flag. | 
|---|
Sets the shape location. This defines a point within the drawing area that will be used to align the shape to.
| location | the location (null not permitted). | 
        
|---|
Sets a flag that controls whether or not the shape outline is visible.
| visible | the flag. | 
|---|
Sets a flag that controls whether or not the shape is visible.
| visible | the flag. | 
|---|
Performs the layout with no constraint, so the content size is determined by the bounds of the shape and/or line drawn to represent the series.
| g2 | the graphics device. | 
|---|