| java.lang.Object org.jfree.chart.block.AbstractBlock org.jfree.chart.block.ColorBlock
ColorBlock | public class ColorBlock extends AbstractBlock implements Block(Code) | | A block that is filled with a single color.
|
Constructor Summary | |
public | ColorBlock(Paint paint, double width, double height) Creates a new block. |
Method Summary | |
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 block for equality with an arbitrary object.
Parameters: obj - the object (null permitted). | public Paint | getPaint() Returns the paint. |
ColorBlock | public ColorBlock(Paint paint, double width, double height)(Code) | | Creates a new block.
Parameters: paint - the paint (null not permitted). Parameters: width - the width. Parameters: height - the height. |
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 block for equality with an arbitrary object.
Parameters: obj - the object (null permitted). A boolean. |
getPaint | public Paint getPaint()(Code) | | Returns the paint.
The paint (never null ). since: 1.0.5 |
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)
|
|
|