| java.lang.Object org.jfree.chart.block.AbstractBlock org.jfree.chart.block.LabelBlock
LabelBlock | public class LabelBlock extends AbstractBlock implements Block,PublicCloneable(Code) | | A block containing a label.
|
Method Summary | |
public Size2D | arrange(Graphics2D g2, RectangleConstraint constraint) Arranges the contents of the block, within the given constraints, and
returns the block size.
Parameters: g2 - the graphics device. Parameters: constraint - the constraint (null not permitted). | public Object | clone() Returns a clone of this LabelBlock instance. | public void | draw(Graphics2D g2, Rectangle2D area) Draws the block. | public Object | draw(Graphics2D g2, Rectangle2D area, Object params) Draws the block within the specified area.
Parameters: g2 - the graphics device. Parameters: area - the area. Parameters: params - ignored (null permitted). | public boolean | equals(Object obj) Tests this LabelBlock for equality with an arbitrary
object.
Parameters: obj - the object (null permitted). | public Font | getFont() Returns the font. | public Paint | getPaint() Returns the paint. | public String | getToolTipText() Returns the tool tip text. | public String | getURLText() Returns the URL text. | public void | setFont(Font font) Sets the font and regenerates the label. | public void | setPaint(Paint paint) Sets the paint and regenerates the label. | public void | setToolTipText(String text) Sets the tool tip text. | public void | setURLText(String text) Sets the URL text. |
DEFAULT_PAINT | final public static Paint DEFAULT_PAINT(Code) | | The default color.
|
LabelBlock | public LabelBlock(String label)(Code) | | Creates a new label block.
Parameters: label - the label (null not permitted). |
LabelBlock | public LabelBlock(String text, Font font)(Code) | | Creates a new label block.
Parameters: text - the text for the label (null not permitted). Parameters: font - the font (null not permitted). |
LabelBlock | public LabelBlock(String text, Font font, Paint paint)(Code) | | Creates a new label block.
Parameters: text - the text for the label (null not permitted). Parameters: font - the font (null not permitted). Parameters: paint - the paint (null not permitted). |
arrange | public Size2D arrange(Graphics2D g2, RectangleConstraint constraint)(Code) | | Arranges the contents of the block, within the given constraints, and
returns the block size.
Parameters: g2 - the graphics device. Parameters: constraint - the constraint (null not permitted). The block size (in Java2D units, never null ). |
draw | public void draw(Graphics2D g2, Rectangle2D area)(Code) | | Draws the block.
Parameters: g2 - the graphics device. Parameters: area - the area. |
draw | public Object draw(Graphics2D g2, Rectangle2D area, Object params)(Code) | | Draws the block within the specified area.
Parameters: g2 - the graphics device. Parameters: area - the area. Parameters: params - ignored (null permitted). Always null . |
equals | public boolean equals(Object obj)(Code) | | Tests this LabelBlock for equality with an arbitrary
object.
Parameters: obj - the object (null permitted). A boolean. |
setFont | public void setFont(Font font)(Code) | | Sets the font and regenerates the label.
Parameters: font - the font (null not permitted). See Also: LabelBlock.getFont() |
setPaint | public void setPaint(Paint paint)(Code) | | Sets the paint and regenerates the label.
Parameters: paint - the paint (null not permitted). See Also: LabelBlock.getPaint() |
Methods inherited from org.jfree.chart.block.AbstractBlock | public Size2D arrange(Graphics2D g2)(Code)(Java Doc) public Size2D arrange(Graphics2D g2, RectangleConstraint constraint)(Code)(Java Doc) protected double calculateTotalHeight(double contentHeight)(Code)(Java Doc) protected double calculateTotalWidth(double contentWidth)(Code)(Java Doc) public Object clone() throws CloneNotSupportedException(Code)(Java Doc) protected void drawBorder(Graphics2D g2, Rectangle2D area)(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public BlockBorder getBorder()(Code)(Java Doc) public Rectangle2D getBounds()(Code)(Java Doc) public double getContentXOffset()(Code)(Java Doc) public double getContentYOffset()(Code)(Java Doc) public BlockFrame getFrame()(Code)(Java Doc) public double getHeight()(Code)(Java Doc) public String getID()(Code)(Java Doc) public RectangleInsets getMargin()(Code)(Java Doc) public RectangleInsets getPadding()(Code)(Java Doc) public double getWidth()(Code)(Java Doc) public void setBorder(BlockBorder border)(Code)(Java Doc) public void setBorder(double top, double left, double bottom, double right)(Code)(Java Doc) public void setBounds(Rectangle2D bounds)(Code)(Java Doc) public void setFrame(BlockFrame frame)(Code)(Java Doc) public void setHeight(double height)(Code)(Java Doc) public void setID(String id)(Code)(Java Doc) public void setMargin(RectangleInsets margin)(Code)(Java Doc) public void setMargin(double top, double left, double bottom, double right)(Code)(Java Doc) public void setPadding(RectangleInsets padding)(Code)(Java Doc) public void setPadding(double top, double left, double bottom, double right)(Code)(Java Doc) public void setWidth(double width)(Code)(Java Doc) protected RectangleConstraint toContentConstraint(RectangleConstraint c)(Code)(Java Doc) protected Rectangle2D trimBorder(Rectangle2D area)(Code)(Java Doc) protected Rectangle2D trimMargin(Rectangle2D area)(Code)(Java Doc) protected Rectangle2D trimPadding(Rectangle2D area)(Code)(Java Doc) protected double trimToContentHeight(double fixedHeight)(Code)(Java Doc) protected double trimToContentWidth(double fixedWidth)(Code)(Java Doc)
|
|
|