public interface Container extends java.lang.Iterable<Drawable>
Modifier and Type | Method and Description |
---|---|
void |
add(Drawable drawable)
Adds a new component to this container.
|
void |
add(Drawable drawable,
java.lang.Object constraints)
Adds a new component to this container.
|
java.awt.geom.Rectangle2D |
getBounds()
Returns the bounds of this container.
|
java.lang.Object |
getConstraints(Drawable drawable)
Return additional information on component
|
Drawable |
getDrawableAt(java.awt.geom.Point2D point)
Returns the component at the specified point.
|
Insets2D |
getInsets()
Returns the space that this container must preserve at each of its
edges.
|
Layout |
getLayout()
Returns the layout associated with this container.
|
void |
layout()
Recalculates this container's layout.
|
void |
remove(Drawable drawable)
Removes a component from this container.
|
void |
setBounds(java.awt.geom.Rectangle2D bounds)
Sets the bounds of this container.
|
void |
setInsets(Insets2D insets)
Sets the space that this container must preserve 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.
|
Insets2D getInsets()
void setInsets(Insets2D insets)
insets
- Insets to be set.java.awt.geom.Rectangle2D getBounds()
void setBounds(java.awt.geom.Rectangle2D bounds)
bounds
- BoundsLayout getLayout()
void layout()
void setLayout(Layout layout)
layout
- Layout to be set.void add(Drawable drawable)
drawable
- Componentvoid add(Drawable drawable, java.lang.Object constraints)
drawable
- Componentconstraints
- Additional information (e.g. for layout)Drawable getDrawableAt(java.awt.geom.Point2D point)
null
will be returned.point
- Two-dimensional point.null
if no
component could be found.java.lang.Object getConstraints(Drawable drawable)
drawable
- Componentnull
void remove(Drawable drawable)
drawable
- Componentint size()