public abstract class AbstractTableLayout extends Object implements TableLayout
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractTableLayout.AbstractAxis |
Constructor and Description |
---|
AbstractTableLayout() |
Modifier and Type | Method and Description |
---|---|
void |
addComponentLayoutListener(Component component,
ComponentLayoutListener listener) |
void |
addComponentLayoutListener(ComponentLayoutListener listener) |
void |
addLayoutComponent(Component comp,
Object constr)
Adds the specified component to the layout, using the specified constraint object.
|
void |
addLayoutComponent(String name,
Component comp)
If the layout manager uses a per-component string, adds the component
comp to the layout, associating it with the string specified by
name . |
void |
ensureValidity(Container container) |
void |
ensureValidity(Rectangle innerArea) |
protected abstract AbstractTableLayout.AbstractAxis |
getColumns()
Indicates whether or not the size of the cells are known for the last known size of the container.
|
Component[] |
getComponents(Container parent) |
float |
getLayoutAlignmentX(Container parent)
Returns the alignment along the x axis.
|
float |
getLayoutAlignmentY(Container parent)
Returns the alignment along the y axis.
|
protected abstract AbstractTableLayout.AbstractAxis |
getRows() |
void |
invalidateLayout(Container target)
Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.
|
protected boolean |
isValid(Rectangle innerArea) |
void |
layoutComponent(Container parent,
Component comp) |
void |
layoutContainer(Container parent)
Lays out the specified container.
|
Dimension |
maximumLayoutSize(Container target)
Returns the maximum dimensions for this layout given the components in the specified target container.
|
void |
removeComponentLayoutListener(Component component,
ComponentLayoutListener listener) |
void |
removeComponentLayoutListener(ComponentLayoutListener listener) |
protected void |
validateLayout(Rectangle innerArea)
Calculates the sizes of the rows and columns based on the absolute and relative sizes specified in
rowSpec and
columnSpec and the size of the container. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
adjustBounds, adjustHeight, adjustWidth, adjustX, adjustY, colSpan, columnIndex, deleteColumn, deleteRow, drawGrid, getColumnWidth, getRowHeight, getTableConstraints, height, insertColumn, insertRow, rowIndex, rowSpan, setColumnWidth, setRelativeBounds, setRowHeight, setTableConstraints, width, xLocation, yLocation
drawLayoutHelp, getCustomizerConstraints, setAbsoluteBounds, setCustomizerConstraints
minimumLayoutSize, preferredLayoutSize, removeLayoutComponent
protected abstract AbstractTableLayout.AbstractAxis getColumns()
protected abstract AbstractTableLayout.AbstractAxis getRows()
public void addLayoutComponent(String name, Component comp)
comp
to the layout, associating it with the string specified by
name
.addLayoutComponent
in interface LayoutManager
name
- the string to be associated with the componentcomp
- the component to be addedpublic void addLayoutComponent(Component comp, Object constr)
addLayoutComponent
in interface LayoutManager2
comp
- the component to be addedconstr
- where/how the component is added to the layout.protected void validateLayout(Rectangle innerArea)
rowSpec
and
columnSpec
and the size of the container. The result is stored in
rowSize
and
columnSize
.public void invalidateLayout(Container target)
invalidateLayout
in interface LayoutManager2
protected boolean isValid(Rectangle innerArea)
public float getLayoutAlignmentX(Container parent)
getLayoutAlignmentX
in interface LayoutManager2
public float getLayoutAlignmentY(Container parent)
getLayoutAlignmentY
in interface LayoutManager2
public Dimension maximumLayoutSize(Container target)
maximumLayoutSize
in interface LayoutManager2
target
- the component which needs to be laid outpublic void ensureValidity(Container container)
public void ensureValidity(Rectangle innerArea)
public void layoutContainer(Container parent)
layoutContainer
in interface LayoutManager
parent
- the container to be laid outpublic void layoutComponent(Container parent, Component comp)
layoutComponent
in interface CustomizerLayout
layoutComponent
in interface TableLayout
public void addComponentLayoutListener(ComponentLayoutListener listener)
addComponentLayoutListener
in interface CustomizerLayout
public void addComponentLayoutListener(Component component, ComponentLayoutListener listener)
addComponentLayoutListener
in interface CustomizerLayout
public void removeComponentLayoutListener(ComponentLayoutListener listener)
removeComponentLayoutListener
in interface CustomizerLayout
public void removeComponentLayoutListener(Component component, ComponentLayoutListener listener)
removeComponentLayoutListener
in interface CustomizerLayout
Copyright © 2002–2017 SoftSmithy. All rights reserved.