|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.softsmithy.lib.awt.layout.AbstractTableLayout org.softsmithy.lib.awt.layout.InfiniteTableLayout
public class InfiniteTableLayout
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.softsmithy.lib.awt.layout.AbstractTableLayout |
---|
AbstractTableLayout.AbstractAxis |
Constructor Summary | |
---|---|
InfiniteTableLayout(Container parent)
|
|
InfiniteTableLayout(int defaultColumnWidth,
int defaultRowHeight,
Container parent)
Creates a new instance of UnlimitedTableLayout |
Method Summary | |
---|---|
Rectangle |
adjustBounds(Rectangle bounds)
|
int |
adjustHeight(int yPixel,
int pixelHeight)
|
int |
adjustWidth(int xPixel,
int pixelWidth)
|
int |
adjustX(int pixel)
|
int |
adjustY(int pixel)
|
int |
colSpan(int fromIndex,
int pixelWidth)
|
int |
columnIndex(int pixel)
|
void |
deleteColumn(int i,
boolean absolute)
|
void |
deleteRow(int i,
boolean absolute)
|
void |
drawGrid(Container container,
Graphics g)
|
void |
drawLayoutHelp(Container container,
Graphics g)
|
protected AbstractTableLayout.AbstractAxis |
getColumns()
Indicates whether or not the size of the cells are known for the last known size of the container. |
double |
getColumnWidth(int column)
|
CustomizerConstraints |
getCustomizerConstraints(Component comp)
|
int |
getDefaultColumnWidth()
Getter for property defaultColumnWidth. |
int |
getDefaultRowHeight()
Getter for property defaultRowHeight. |
Container |
getParent()
|
double |
getRowHeight(int row)
|
protected AbstractTableLayout.AbstractAxis |
getRows()
|
TableConstraints |
getTableConstraints(Component comp)
Getter for property constraints. |
int |
height(int fromIndex,
int rowSpan)
|
void |
insertColumn(int i,
boolean absolute)
|
void |
insertRow(int i,
boolean absolute)
|
boolean |
isDefaultColumn(int column)
|
boolean |
isDefaultRow(int row)
|
void |
makeColumnDefault(int column)
|
void |
makeRowDefault(int row)
|
Dimension |
minimumLayoutSize(Container parent)
Calculates the minimum size dimensions for the specified container, given the components it contains. |
Dimension |
preferredLayoutSize(Container parent)
Calculates the preferred size dimensions for the specified container, given the components it contains. |
void |
removeLayoutComponent(Component comp)
Removes the specified component from the layout. |
int |
rowIndex(int pixel)
|
int |
rowSpan(int fromIndex,
int pixelHeight)
|
void |
setAbsoluteBounds(Component component,
Rectangle bounds)
|
void |
setColumnWidth(int column,
double width)
|
void |
setCustomizerConstraints(Component comp,
CustomizerConstraints cc)
|
void |
setDefaultColumnWidth(int defaultColumnWidth,
boolean absolute)
Setter for property defaultColumnWidth. |
void |
setDefaultRowHeight(int defaultRowHeight,
boolean absolute)
Setter for property defaultRowHeight. |
void |
setRelativeBounds(Component component,
Rectangle bounds)
|
void |
setRowHeight(int row,
double height)
|
void |
setTableConstraints(Component comp,
TableConstraints tc)
Setter for property constraints. |
int |
width(int fromIndex,
int colSpan)
|
int |
xLocation(int index)
|
int |
yLocation(int index)
|
Methods inherited from class org.softsmithy.lib.awt.layout.AbstractTableLayout |
---|
addComponentLayoutListener, addComponentLayoutListener, addLayoutComponent, addLayoutComponent, ensureValidity, ensureValidity, getComponents, getLayoutAlignmentX, getLayoutAlignmentY, invalidateLayout, isValid, layoutComponent, layoutContainer, maximumLayoutSize, removeComponentLayoutListener, removeComponentLayoutListener, validateLayout |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InfiniteTableLayout(int defaultColumnWidth, int defaultRowHeight, Container parent)
public InfiniteTableLayout(Container parent)
Method Detail |
---|
public Container getParent()
public void setColumnWidth(int column, double width)
public double getColumnWidth(int column)
public void makeColumnDefault(int column)
public boolean isDefaultColumn(int column)
public void setRowHeight(int row, double height)
public double getRowHeight(int row)
public void makeRowDefault(int row)
public boolean isDefaultRow(int row)
public int getDefaultColumnWidth()
public void setDefaultColumnWidth(int defaultColumnWidth, boolean absolute)
defaultColumnWidth
- New value of property defaultColumnWidth.public int getDefaultRowHeight()
public void setDefaultRowHeight(int defaultRowHeight, boolean absolute)
defaultRowHeight
- New value of property defaultRowHeight.public TableConstraints getTableConstraints(Component comp)
public CustomizerConstraints getCustomizerConstraints(Component comp)
public void setTableConstraints(Component comp, TableConstraints tc)
constraints
- New value of property constraints.public void setCustomizerConstraints(Component comp, CustomizerConstraints cc)
public void deleteColumn(int i, boolean absolute)
public void deleteRow(int i, boolean absolute)
public void drawGrid(Container container, Graphics g)
public void drawLayoutHelp(Container container, Graphics g)
public void insertColumn(int i, boolean absolute)
public void insertRow(int i, boolean absolute)
public Dimension minimumLayoutSize(Container parent)
parent
- the component to be laid outpreferredLayoutSize(java.awt.Container)
public Dimension preferredLayoutSize(Container parent)
parent
- the container to be laid outminimumLayoutSize(java.awt.Container)
public void removeLayoutComponent(Component comp)
comp
- the component to be removedpublic int columnIndex(int pixel)
public int rowIndex(int pixel)
public int colSpan(int fromIndex, int pixelWidth)
public int rowSpan(int fromIndex, int pixelHeight)
public int width(int fromIndex, int colSpan)
public int height(int fromIndex, int rowSpan)
public int yLocation(int index)
public int xLocation(int index)
public int adjustX(int pixel)
public int adjustY(int pixel)
public int adjustWidth(int xPixel, int pixelWidth)
public int adjustHeight(int yPixel, int pixelHeight)
public Rectangle adjustBounds(Rectangle bounds)
protected AbstractTableLayout.AbstractAxis getColumns()
getColumns
in class AbstractTableLayout
protected AbstractTableLayout.AbstractAxis getRows()
getRows
in class AbstractTableLayout
public void setAbsoluteBounds(Component component, Rectangle bounds)
public void setRelativeBounds(Component component, Rectangle bounds)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |