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

All Implemented Interfaces:
    Block, Cloneable, Serializable

A block that is filled with a single color.
Field Summary
static final  long serialVersionUID    For serialization. 
Constructor:
 public ColorBlock(Paint paint,
    double width,
    double height) 
    Creates a new block.
    Parameters:
    paint - the paint (null not permitted).
    width - the width.
    height - the height.
Method from org.jfree.chart.block.ColorBlock Summary:
arrange,   draw,   draw,   equals,   getPaint
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.ColorBlock Detail:
 public Size2D arrange(Graphics2D g2,
    RectangleConstraint constraint) 
    Arranges the contents of the block, within the given constraints, and returns the block size.
 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 block for equality with an arbitrary object.
 public Paint getPaint() 
    Returns the paint.