|
||||||||||
| 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.block.LabelBlock
A block containing a label.
| Constructor Summary | |
LabelBlock(java.lang.String label)
Creates a new label block. |
|
LabelBlock(java.lang.String label,
java.awt.Font font)
Creates a new label block. |
|
| Method Summary | |
Size2D |
arrange(java.awt.Graphics2D g2,
RectangleConstraint constraint)
Arranges the contents of the block, within the given constraints, and returns the block size. |
void |
draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D area)
Draws the block. |
| Methods inherited from class org.jfree.chart.block.AbstractBlock |
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, getBounds, getID, setBounds, setID |
| Constructor Detail |
public LabelBlock(java.lang.String label)
label - the label.
public LabelBlock(java.lang.String label,
java.awt.Font font)
label - the label.font - the font.| Method Detail |
public Size2D arrange(java.awt.Graphics2D g2,
RectangleConstraint constraint)
arrange in interface Blockarrange in class AbstractBlockg2 - the graphics device.constraint - the constraint (null not permitted).
null).
public void draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D area)
g2 - the graphics device.area - the area.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||