|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Container
An interface that provides functions to store and layout Drawables.
Method Summary | |
---|---|
void |
add(Drawable drawable)
Adds a new component to this container. |
void |
add(Drawable drawable,
Object constraints)
Adds a new component to this container. |
Rectangle2D |
getBounds()
Returns the bounds of this container. |
Object |
getConstraints(Drawable drawable)
Return additional information on component |
Insets2D |
getInsets()
Return the space that this DrawableContainer must leave at each of its edges. |
Layout |
getLayout()
Returns the layout associated with this container. |
void |
remove(Drawable drawable)
Removes a component from this container. |
void |
setBounds(Rectangle2D bounds)
Sets the bounds of this container. |
void |
setInsets(Insets2D insets)
Sets the space that this DrawableContainer must leave at each of its edges. |
void |
setLayout(Layout layout)
Sets the layout associated with this container. |
int |
size()
Returns the number of components that are stored in this container. |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Method Detail |
---|
Insets2D getInsets()
void setInsets(Insets2D insets)
insets
- Insets to be set.Rectangle2D getBounds()
void setBounds(Rectangle2D bounds)
bounds
- BoundsLayout getLayout()
void setLayout(Layout layout)
layout
- Layout to be set.void add(Drawable drawable)
drawable
- Componentvoid add(Drawable drawable, Object constraints)
drawable
- Componentconstraints
- Additional information (e.g. for layout)Object getConstraints(Drawable drawable)
drawable
- Component
null
void remove(Drawable drawable)
drawable
- Componentint size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |