|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jfree.chart.block.AbstractBlock
org.jfree.chart.title.LegendGraphic
public class LegendGraphic
The graphical item within a legend item.
| Constructor Summary | |
|---|---|
LegendGraphic(java.awt.Shape shape,
java.awt.Paint fillPaint)
Creates a new legend graphic. |
|
| Method Summary | |
|---|---|
void |
draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D area)
Draws the graphic item within the specified area. |
java.awt.Paint |
getFillPaint()
Returns the paint used to fill the shape. |
java.awt.Shape |
getLine()
Returns the line centered about (0, 0). |
java.awt.Paint |
getLinePaint()
Returns the line paint. |
java.awt.Stroke |
getLineStroke()
Returns the line stroke. |
java.awt.Paint |
getOutlinePaint()
Returns the outline paint. |
java.awt.Stroke |
getOutlineStroke()
Returns the outline stroke. |
java.awt.Shape |
getShape()
Returns the shape. |
boolean |
isLineVisible()
Returns the flag that controls whether or not the line is visible. |
boolean |
isShapeFilled()
Returns a flag that controls whether or not the shapes are filled. |
boolean |
isShapeOutlineVisible()
Returns a flag that controls whether the shape outline is visible. |
boolean |
isShapeVisible()
Returns a flag that controls whether or not the shape is visible. |
void |
setFillPaint(java.awt.Paint paint)
Sets the paint used to fill the shape. |
void |
setLine(java.awt.Shape line)
Sets the line. |
void |
setLinePaint(java.awt.Paint paint)
Sets the line paint. |
void |
setLineStroke(java.awt.Stroke stroke)
Sets the line stroke. |
void |
setLineVisible(boolean visible)
Sets the flag that controls whether or not the line is visible. |
void |
setOutlinePaint(java.awt.Paint paint)
Sets the outline paint. |
void |
setOutlineStroke(java.awt.Stroke stroke)
Sets the outline stroke. |
void |
setShape(java.awt.Shape shape)
Sets the shape. |
void |
setShapeAnchor(org.jfree.ui.RectangleAnchor anchor)
Sets the shape anchor. |
void |
setShapeFilled(boolean filled)
Sets a flag that controls whether or not the shape is filled. |
void |
setShapeLocation(org.jfree.ui.RectangleAnchor location)
Sets the shape location. |
void |
setShapeOutlineVisible(boolean visible)
Sets a flag that controls whether or not the shape outline is visible. |
void |
setShapeVisible(boolean visible)
Sets a flag that controls whether or not the shape is visible. |
| Methods inherited from class org.jfree.chart.block.AbstractBlock |
|---|
arrange, arrange, calculateTotalHeight, calculateTotalWidth, drawBorder, equals, getBorder, getBounds, getHeight, getID, getMargin, getPadding, getWidth, setBorder, setBounds, setHeight, setID, setMargin, setPadding, setWidth, toContentConstraint, trimBorder, trimMargin, trimPadding, trimToContentHeight, trimToContentWidth |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jfree.chart.block.Block |
|---|
arrange, arrange, getBounds, getID, setBounds, setID |
| Constructor Detail |
|---|
public LegendGraphic(java.awt.Shape shape,
java.awt.Paint fillPaint)
shape - the shape (null not permitted).fillPaint - the fill paint (null not permitted).| Method Detail |
|---|
public void setShapeAnchor(org.jfree.ui.RectangleAnchor anchor)
anchor - the anchor (null not permitted).public void setShapeLocation(org.jfree.ui.RectangleAnchor location)
location - the location (null not permitted).public boolean isShapeVisible()
public void setShapeVisible(boolean visible)
visible - the flag.public java.awt.Shape getShape()
public void setShape(java.awt.Shape shape)
shape - the shape.public boolean isShapeFilled()
public void setShapeFilled(boolean filled)
filled - the flag.public java.awt.Paint getFillPaint()
public void setFillPaint(java.awt.Paint paint)
paint - the paint.public boolean isShapeOutlineVisible()
public void setShapeOutlineVisible(boolean visible)
visible - the flag.public java.awt.Paint getOutlinePaint()
public void setOutlinePaint(java.awt.Paint paint)
paint - the paint.public java.awt.Stroke getOutlineStroke()
public void setOutlineStroke(java.awt.Stroke stroke)
stroke - the stroke.public boolean isLineVisible()
public void setLineVisible(boolean visible)
visible - the flag.public java.awt.Shape getLine()
public void setLine(java.awt.Shape line)
line - the line.public java.awt.Paint getLinePaint()
public void setLinePaint(java.awt.Paint paint)
paint - the paint.public java.awt.Stroke getLineStroke()
public void setLineStroke(java.awt.Stroke stroke)
stroke - the stroke.
public void draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D area)
draw in interface org.jfree.ui.Drawableg2 - the graphics device.area - the area.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||