public abstract class FlowLayout<T>
extends java.lang.Object
implements java.lang.Cloneable
Constructor and Description |
---|
FlowLayout() |
Modifier and Type | Method and Description |
---|---|
void |
addChild(T aChild,
java.lang.Object aLayoutInfo)
Adds a layout child.
|
FlowLayout |
clone()
Standard clone implementation.
|
abstract T |
getChild(T aParent,
int anIndex)
Returns the individual child in this line.
|
abstract int |
getChildCount(T aParent)
Returns the child count of given parent.
|
abstract double |
getHeight(T aChild)
Returns child height.
|
abstract SPInsets |
getInsets(T aParent)
Returns the insets of the parent.
|
abstract java.lang.Object |
getLayoutInfo(T aChild)
Returns layout info (descriptor) for child.
|
double |
getMinHeight(double aWidth)
The min height for layout.
|
double |
getMinWidth(double aHeight)
The min width for layout.
|
abstract double |
getParentHeight(T aParent)
Returns parent height.
|
abstract double |
getParentWidth(T aParent)
Returns parent width.
|
double |
getPrefHeight(double aWidth)
The preferred height for layout.
|
abstract double |
getPrefHeight(T aChild,
double aValue)
Returns child preferred height.
|
double |
getPrefWidth(double aHeight)
The preferred width for layout.
|
abstract double |
getPrefWidth(T aChild,
double aValue)
Returns child preferred width.
|
double |
getSpacingX()
Returns the spacing x.
|
double |
getSpacingY()
Returns the spacing y.
|
abstract double |
getWidth(T aChild)
Returns child width.
|
boolean |
getWraps()
Returns whether layout wraps.
|
abstract double |
getX(T aChild)
Returns child x.
|
abstract double |
getY(T aChild)
Returns child y.
|
void |
layoutChildren(T aParent)
Layout children.
|
void |
removeChild(T aChild)
Removes a child.
|
abstract void |
setBounds(T aChild,
double anX,
double aY,
double aWidth,
double aHeight)
Set child bounds.
|
abstract void |
setLayoutInfo(T aChild,
java.lang.Object aLI)
Sets layout info (descriptor) for child.
|
void |
setSpacingX(double aValue)
Sets the spacing x.
|
void |
setSpacingY(double aValue)
Sets the spacing y.
|
void |
setWraps(boolean aValue)
Sets whether layout wraps.
|
public double getSpacingX()
public void setSpacingX(double aValue)
public double getSpacingY()
public void setSpacingY(double aValue)
public boolean getWraps()
public void setWraps(boolean aValue)
public void layoutChildren(T aParent)
public double getPrefWidth(double aHeight)
public double getPrefHeight(double aWidth)
public double getMinWidth(double aHeight)
public double getMinHeight(double aWidth)
public void addChild(T aChild, java.lang.Object aLayoutInfo)
public void removeChild(T aChild)
public abstract double getParentWidth(T aParent)
public abstract double getParentHeight(T aParent)
public abstract int getChildCount(T aParent)
public abstract T getChild(T aParent, int anIndex)
public abstract java.lang.Object getLayoutInfo(T aChild)
public abstract void setLayoutInfo(T aChild, java.lang.Object aLI)
public abstract double getX(T aChild)
public abstract double getY(T aChild)
public abstract double getWidth(T aChild)
public abstract double getHeight(T aChild)
public abstract void setBounds(T aChild, double anX, double aY, double aWidth, double aHeight)
public abstract double getPrefWidth(T aChild, double aValue)
public abstract double getPrefHeight(T aChild, double aValue)
public FlowLayout clone()
clone
in class java.lang.Object