com.jgoodies.forms.debug
public class FormDebugPanel extends JPanel
This class is not intended to be extended. However, it is not
marked as final
to allow users to subclass it for
debugging purposes. In general it is recommended to use JPanel
instances, not extend them. You can see this implementation style
in the Forms tutorial classes. Rarely there's a need to extend JPanel;
for example if you provide a custom behavior for
#paintComponent
or #updateUI
.
Version: $Revision: 1.2 $
See Also: FormDebugUtils
Constructor Summary | |
---|---|
FormDebugPanel()
Constructs a FormDebugPanel with all options turned off. | |
FormDebugPanel(FormLayout layout)
Constructs a FormDebugPanel on the given FormLayout instance
that paints the grid in the foreground and paints no diagonals.
| |
FormDebugPanel(boolean paintInBackground, boolean paintDiagonals)
Constructs a FormDebugPanel on the given FormLayout
using the specified settings that are otherwise turned off.
| |
FormDebugPanel(FormLayout layout, boolean paintInBackground, boolean paintDiagonals)
Constructs a FormDebugPanel on the given FormLayout using
the specified settings that are otherwise turned off.
|
Method Summary | |
---|---|
void | paint(Graphics g)
Paints the panel. |
protected void | paintComponent(Graphics g)
Paints the component and - if background painting is enabled - the grid.
|
void | setGridColor(Color color)
Sets the debug grid's color.
|
void | setPaintDiagonals(boolean b)
Enables or disables to paint the panel's diagonals.
|
void | setPaintInBackground(boolean b)
Specifies to paint in background or foreground.
|
Parameters: layout the panel's FormLayout instance
Parameters: paintInBackground true to paint grid lines in the background, false to paint the grid in the foreground paintDiagonals true to paint diagonals, false to not paint them
Parameters: layout the panel's FormLayout instance paintInBackground true to paint grid lines in the background, false to paint the grid in the foreground paintDiagonals true to paint diagonals, false to not paint them
#paintComponent
.
Parameters: g the Graphics object to paint on
See Also: paintComponent
#paint
.
Parameters: g the Graphics object to paint on
See Also: paint
Parameters: color the color used to paint the debug grid
Parameters: b true to paint diagonals, false to not paint them
Parameters: b true to paint in the background, false for the foreground