|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgoodies.forms.debug.FormDebugUtils
public final class FormDebugUtils
Provides static methods that help you understand and fix layout problems
when using the FormLayout
. Dumps information about the layout grid,
layout groups and cell constraints to the console.
Implicit values are mapped to concrete. For example, implicit alignments in column and row specifications will be visible. And cell constraint alignments that use or override the column and row defaults are visible too.
ColumnSpec("p") -> ColumnSpec("fill:pref:0"); ColumnSpec("p:1") -> ColumnSpec("fill:pref:1"); RowSpec("p") -> RowSpec("center:pref:0"); RowSpec("p:1") -> RowSpec("center:pref:1");
FormDebugPanel
Constructor Summary | |
---|---|
private |
FormDebugUtils()
|
Method Summary | |
---|---|
static void |
dumpAll(java.awt.Container container)
Dumps all layout state to the console: column and row specifications, column and row groups, grid bounds and cell constraints. |
static void |
dumpColumnGroups(FormLayout layout)
Dumps the layout's column groups to the console. |
static void |
dumpColumnSpecs(FormLayout layout)
Dumps the layout's column specifications to the console. |
static void |
dumpConstraints(java.awt.Container container)
Dumps the component constraints to the console. |
static void |
dumpGridBounds(java.awt.Container container)
Dumps the container's grid info to the console if and only if the container's layout is a FormLayout . |
static void |
dumpGridBounds(FormLayout.LayoutInfo layoutInfo)
Dumps the grid layout info to the console. |
private static void |
dumpGroups(java.lang.String title,
int[][] allGroups)
Dumps the given groups to the console. |
static void |
dumpRowGroups(FormLayout layout)
Dumps the layout's row groups to the console. |
static void |
dumpRowSpecs(FormLayout layout)
Dumps the layout's row specifications to the console. |
static FormLayout.LayoutInfo |
getLayoutInfo(java.awt.Container container)
Computes and returns the layout's grid origins. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
private FormDebugUtils()
Method Detail |
---|
public static void dumpAll(java.awt.Container container)
container
- the layout containerpublic static void dumpColumnSpecs(FormLayout layout)
layout
- the FormLayout
to inspectpublic static void dumpRowSpecs(FormLayout layout)
layout
- the FormLayout
to inspectpublic static void dumpColumnGroups(FormLayout layout)
layout
- the FormLayout
to inspectpublic static void dumpRowGroups(FormLayout layout)
layout
- the FormLayout
to inspectpublic static void dumpGridBounds(java.awt.Container container)
FormLayout
.
container
- the container to inspect
java.lang.IllegalArgumentException
- if the layout is not FormLayoutpublic static void dumpGridBounds(FormLayout.LayoutInfo layoutInfo)
layoutInfo
- provides the column and row originspublic static void dumpConstraints(java.awt.Container container)
container
- the layout container to inspectprivate static void dumpGroups(java.lang.String title, int[][] allGroups)
title
- a string title for the dumpallGroups
- a two-dimensional array with all groupspublic static FormLayout.LayoutInfo getLayoutInfo(java.awt.Container container)
container
- the layout container to inspect
java.lang.IllegalArgumentException
- if the layout is not FormLayout
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |