public abstract class AdaptWidthByCustomizer
extends java.lang.Object
Constructor and Description |
---|
AdaptWidthByCustomizer() |
Modifier and Type | Method and Description |
---|---|
abstract int |
adaptWidthBy(int deltaX,
int unadaptedWidth)
When
canAdaptWidth has
been set true for a Canvas , this routine will
be called to negotiate a new width when a surplus of space or overflow has occurred in
the parent Layout . |
Canvas |
getCanvas()
Returns the Canvas associated with this customizer.
|
protected void |
setCanvas(Canvas canvas) |
protected void setCanvas(Canvas canvas)
public Canvas getCanvas()
public abstract int adaptWidthBy(int deltaX, int unadaptedWidth)
canAdaptWidth
has
been set true for a Canvas
, this routine will
be called to negotiate a new width when a surplus of space or overflow has occurred in
the parent Layout
.deltaX
- number of horizontal pixels available (positive) or overflowed (negative)unadaptedWidth
- width of member currently assumed by parent layoutCanvas.setCanAdaptWidth(java.lang.Boolean)