|
Header
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Block
A block is an arbitrary item that can be drawn (in Java2D space) within a
rectangular area, has a preferred size, and can be arranged by an
Arrangement
manager.
Method Summary | |
---|---|
org.jfree.ui.Size2D |
arrange(java.awt.Graphics2D g2)
Arranges the contents of the block, with no constraints, and returns the block size. |
org.jfree.ui.Size2D |
arrange(java.awt.Graphics2D g2,
RectangleConstraint constraint)
Arranges the contents of the block, within the given constraints, and returns the block size. |
java.lang.Object |
draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D area,
java.lang.Object params)
Draws the block within the specified area. |
java.awt.geom.Rectangle2D |
getBounds()
Returns the current bounds of the block. |
java.lang.String |
getID()
Returns an ID for the block. |
void |
setBounds(java.awt.geom.Rectangle2D bounds)
Sets the bounds of the block. |
void |
setID(java.lang.String id)
Sets the ID for the block. |
Methods inherited from interface org.jfree.ui.Drawable |
---|
draw |
Method Detail |
---|
java.lang.String getID()
void setID(java.lang.String id)
id
- the ID.org.jfree.ui.Size2D arrange(java.awt.Graphics2D g2)
g2
- the graphics device.
org.jfree.ui.Size2D arrange(java.awt.Graphics2D g2, RectangleConstraint constraint)
g2
- the graphics device.constraint
- the constraint (null
not permitted).
null
).java.awt.geom.Rectangle2D getBounds()
void setBounds(java.awt.geom.Rectangle2D bounds)
bounds
- the bounds.java.lang.Object draw(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D area, java.lang.Object params)
params
and return value supported.
g2
- the graphics device.area
- the area.params
- optional parameters (null
permitted).
null
).
|
Footer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |