|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConstrainedVisual
Interface representing a visual that is used in layout.
Method Summary | |
---|---|
int |
getBaseline(int width,
int height)
Returns the baseline for a given width and height. |
int |
getPreferredHeight(int width)
Returns the visual's preferred height given the provided width constraint. |
Dimensions |
getPreferredSize()
Returns the visual's unconstrained preferred size. |
int |
getPreferredWidth(int height)
Returns the visual's preferred width given the provided height constraint. |
void |
setSize(int width,
int height)
Sets the visual's render size. |
Methods inherited from interface org.apache.pivot.wtk.Visual |
---|
getBaseline, getHeight, getWidth, paint |
Method Detail |
---|
void setSize(int width, int height)
width
- height
- int getPreferredWidth(int height)
height
- The height by which to constrain the preferred width, or -1
for no constraint.int getPreferredHeight(int width)
width
- The width by which to constrain the preferred height, or -1
for no constraint.Dimensions getPreferredSize()
int getBaseline(int width, int height)
width
- height
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |