public class PrintCellPanel extends PrintCell
Modifier and Type | Field and Description |
---|---|
protected Vector |
all |
double |
borderWidth
This is not a drawn border, this is the gap between the boundaries of this
Cell and the contained cells.
|
protected boolean |
calculated |
int |
defaultAddToMeCellConstraints
The default cell constraints when controls are added to the Panel.
|
boolean |
equalHeights |
boolean |
equalWidths |
protected Grid |
grid |
protected PrintCell |
lastAdded |
protected boolean |
made |
protected double |
titleGap |
AlwaysRecalculateSizes, backGround, borderColor, borderRect, borderStyle, borderThickness, bottomSpace, constraints, font, foreGround, height, leftSpace, maxHeight, maxWidth, minHeight, minWidth, modifiers, name, pointGraphics, preferredHeight, preferredWidth, RECT_INSET_BORDER, RECT_SIDE_BOTTOM, RECT_SIDE_FULL, RECT_SIDE_FULL_AS_INDIVIDUAL_LINES, RECT_SIDE_LEFT, RECT_SIDE_RIGHT, RECT_SIDE_TOP, rightSpace, topSpace, width, x, y
BOTTOM, CELLFLAG, CELLMASK, CENTER, CONTROLMASK, DONTCHANGE, DONTFILL, DONTSTRETCH, EAST, FILL, GROW, HCENTER, HCONTRACT, HEXPAND, HFILL, HGROW, HSHRINK, HSTRETCH, INITIALLY_CLOSED, INITIALLY_MINIMIZED, INITIALLY_PREFERRED_SIZE, LEFT, NORTH, NORTHEAST, NORTHWEST, RIGHT, SHRINK, SOUTH, SOUTHEAST, SOUTHWEST, STRETCH, TAG_BACKGROUND_IMAGE, TAG_BORDER, TAG_FIXEDSIZE, TAG_INSETS, TAG_MAXIMUMSIZE, TAG_MINIMUMSIZE, TAG_PREFERREDSIZE, TAG_RECT, TAG_SPAN, TAG_TEXTSIZE, TOP, VCENTER, VCONTRACT, VEXPAND, VFILL, VGROW, VSHRINK, VSTRETCH, WEST
Constructor and Description |
---|
PrintCellPanel() |
Modifier and Type | Method and Description |
---|---|
protected void |
add(PrintCell control)
Adds a child control to this container - you should not generally use
this method.
|
PrintCell |
add(PrintCell c,
double x,
double y,
double width,
double height) |
void |
addDirectly(PrintCell c)
Use this to add a control directly to the Panel.
|
PrintCell |
addLast(PrintCell c) |
PrintCell |
addLast(PrintCell c,
int cellConstraints) |
PrintCell |
addLast(PrintCell c,
int cellConstraints,
int controlConstraints) |
PrintCell |
addNext(PrintCell c) |
PrintCell |
addNext(PrintCell c,
boolean last) |
PrintCell |
addNext(PrintCell c,
int cellConstraints) |
PrintCell |
addNext(PrintCell c,
int cellConstraints,
int controlConstraints) |
protected void |
calculateSizes()
Override this to calculate the preferred, minimum and maximum size of your control.
|
PrintCell |
endRow() |
PrintCell |
findChild(double x,
double y)
Returns the child located at the given x and y coordinates.
|
Iterator |
getChildren()
This returns an Iterator that goes forwards through the components which are physically
added to this Control - i.e. may be displayed within the Control.
|
Iterator |
getChildrenBackwards()
This returns an Iterator that goes backwards through the components which are physically
added to this Control - i.e. may be displayed within the Control.
|
Object |
getControlTag(int tag,
PrintCell c,
Object defaultValue) |
Iterator |
getSubControls()
This returns an Iterator that goes forwards through the components
which are considered a sub-control of this Control, even though they
may not be a "child" of the control -
i.e. it may not have been added into the Control heirarchy.
|
boolean |
isEmpty() |
void |
make(PointGraphics ps) |
protected Grid |
makeLayoutGrid() |
void |
resizeTo(double width,
double height) |
void |
setDefaultTag(int id,
Object value) |
contains, contains, doBackground, doBorder, doPaint, doPaintChildren, draw, getAllDescendants, getAllSubControls, getBackground, getCachedDim, getCachedText, getDim, getExtent, getFont, getForeground, getMaximumSize, getMinimumSize, getPreferredSize, getRect, getSizes, getTag, getText, getTextSize, hasTag, isChildOf, modify, setCell, setControl, setFixedSize, setMaximumSize, setMinimumSize, setPreferredSize, setRect, setSpacing, setSpacing, setTag, setTextSize, setup
protected Vector all
public int defaultAddToMeCellConstraints
protected PrintCell lastAdded
protected boolean made
protected boolean calculated
protected double titleGap
public double borderWidth
protected Grid grid
public boolean equalWidths
public boolean equalHeights
protected void add(PrintCell control)
public PrintCell findChild(double x, double y)
public boolean isEmpty()
public PrintCell endRow()
public void addDirectly(PrintCell c)
public Iterator getSubControls()
PrintCell
getSubControls
in class PrintCell
public Iterator getChildren()
PrintCell
Note that a sub-control may not be a "child" of the control - i.e. it may not have been added into the Control heirarchy.
getChildren
in class PrintCell
public Iterator getChildrenBackwards()
PrintCell
Note that a sub-control may not be a "child" of the control - i.e. it may not have been added into the Control heirarchy.
getChildrenBackwards
in class PrintCell
public void setDefaultTag(int id, Object value)
public void make(PointGraphics ps)
protected void calculateSizes()
PrintCell
calculateSizes
in class PrintCell
protected Grid makeLayoutGrid()