Save This Page
Home » jcommon-1.0.13 » org.jfree » chart » block » [javadoc | source]
org.jfree.chart.block
public class: LabelBlock [javadoc | source]
java.lang.Object
   org.jfree.chart.block.AbstractBlock
      org.jfree.chart.block.LabelBlock

All Implemented Interfaces:
    PublicCloneable, Block, Cloneable, Serializable

A block containing a label.
Field Summary
static final  long serialVersionUID    For serialization. 
public static final  Paint DEFAULT_PAINT    The default color. 
Constructor:
 public LabelBlock(String label) 
    Creates a new label block.
    Parameters:
    label - the label (null not permitted).
 public LabelBlock(String text,
    Font font) 
    Creates a new label block.
    Parameters:
    text - the text for the label (null not permitted).
    font - the font (null not permitted).
 public LabelBlock(String text,
    Font font,
    Paint paint) 
    Creates a new label block.
    Parameters:
    text - the text for the label (null not permitted).
    font - the font (null not permitted).
    paint - the paint (null not permitted).
Method from org.jfree.chart.block.LabelBlock Summary:
arrange,   clone,   draw,   draw,   equals,   getFont,   getPaint,   getToolTipText,   getURLText,   setFont,   setPaint,   setToolTipText,   setURLText
Methods from org.jfree.chart.block.AbstractBlock:
arrange,   arrange,   calculateTotalHeight,   calculateTotalWidth,   clone,   drawBorder,   equals,   getBorder,   getBounds,   getContentXOffset,   getContentYOffset,   getFrame,   getHeight,   getID,   getMargin,   getPadding,   getWidth,   setBorder,   setBorder,   setBounds,   setFrame,   setHeight,   setID,   setMargin,   setMargin,   setPadding,   setPadding,   setWidth,   toContentConstraint,   trimBorder,   trimMargin,   trimPadding,   trimToContentHeight,   trimToContentWidth
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.chart.block.LabelBlock Detail:
 public Size2D arrange(Graphics2D g2,
    RectangleConstraint constraint) 
    Arranges the contents of the block, within the given constraints, and returns the block size.
 public Object clone() throws CloneNotSupportedException 
    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.
 public boolean equals(Object obj) 
    Tests this LabelBlock for equality with an arbitrary object.
 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.