Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

oracle.javatools.columnlayout
Class LayoutGap

java.lang.Object
  extended by oracle.javatools.columnlayout.LayoutGap
All Implemented Interfaces:
LayoutComponent

public class LayoutGap
extends java.lang.Object
implements LayoutComponent

Gaps are represented as JPanels with their preferred size set to the required gap size. They always occupy a single row and column and don't do any resizability checks.


Constructor Summary
LayoutGap(java.awt.Dimension dimension)
          Create a LayoutGap with the supplied minimum dimensions.
LayoutGap(int width, int height)
          Create a LayoutGap using by supplying the width and height, this creates a new dimension.
 
Method Summary
 void addToPanel(java.awt.Container container, int baseRow, int baseColumn, boolean[] rowConstraints, boolean[] columnConstraints, int rowSpan)
          The gap is added at the specified position, as a non-resizable single celled panel.
 void areColumnsResizable(boolean[] columnConstraints, int baseColumn)
          Gaps have no effect on column constraints.
 void areRowsResizable(boolean[] rowConstraints, int baseRow, int rowSpan)
          Gaps have no effect on row constraints.
 int getColumnCount()
          Gaps always occupy a single column.
 int getRowCount()
          Gaps always occupy a single row.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutGap

public LayoutGap(java.awt.Dimension dimension)
Create a LayoutGap with the supplied minimum dimensions.

Parameters:
dimension - minimum size of gap, must not be null

LayoutGap

public LayoutGap(int width,
                 int height)
Create a LayoutGap using by supplying the width and height, this creates a new dimension.

Method Detail

areRowsResizable

public void areRowsResizable(boolean[] rowConstraints,
                             int baseRow,
                             int rowSpan)
Gaps have no effect on row constraints.

Specified by:
areRowsResizable in interface LayoutComponent
Parameters:
rowConstraints - the out parameter
baseRow - the position to start from in the rowConstraints
rowSpan - the length of the rowConstraints which can be changed

areColumnsResizable

public void areColumnsResizable(boolean[] columnConstraints,
                                int baseColumn)
Gaps have no effect on column constraints.

Specified by:
areColumnsResizable in interface LayoutComponent

getColumnCount

public int getColumnCount()
Gaps always occupy a single column.

Specified by:
getColumnCount in interface LayoutComponent

getRowCount

public int getRowCount()
Gaps always occupy a single row.

Specified by:
getRowCount in interface LayoutComponent

addToPanel

public void addToPanel(java.awt.Container container,
                       int baseRow,
                       int baseColumn,
                       boolean[] rowConstraints,
                       boolean[] columnConstraints,
                       int rowSpan)
The gap is added at the specified position, as a non-resizable single celled panel.

Specified by:
addToPanel in interface LayoutComponent
Parameters:
container - the container to add to
baseRow - components must be added relative to this
baseColumn - components must be added relative to this
rowConstraints - whether each row is resizable or not, these are for the whole container
columnConstraints - same as rowConstraints but for columns
rowSpan - the number of rows which the LayoutComponent occupies this will be at least equal to the LayoutComponent's row count

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

Copyright © 1997, 2011, Oracle. All rights reserved.