com.tensegrity.gui.swing.dock.core.themes.classic
Class DockGUIImpl

java.lang.Object
  extended bycom.tensegrity.gui.swing.dock.core.themes.classic.DockGUIImpl
All Implemented Interfaces:
DockGUI

public class DockGUIImpl
extends java.lang.Object
implements DockGUI

Docking framework.

Author:
srutz

Constructor Summary
DockGUIImpl()
          Constructs a new DockGUIImpl.
 
Method Summary
 void paintButtonBorders(java.awt.Graphics2D g, int tabplacement, java.awt.Rectangle[] rs, int activeIndex)
          Paints button borders.
 void paintContentBorder(java.awt.Graphics2D g, int tabplacement, int width, int height, java.awt.Insets insets)
          Paints the content border.
 void paintHeaderGap(java.awt.Graphics2D g, int tabplacement, int width, int height, java.awt.Insets insets)
          Paints the header gap.
 void paintHeaderToolbar(java.awt.Graphics2D g, int tabplacement, int width, int height, java.awt.Insets insets)
          Paints the header toolbar.
 void paintTabButton(java.awt.Graphics2D g, int tabplacement, int width, int height, java.awt.Insets insets, boolean isActive, boolean hasFocus)
          Paints a tab button.
 void paintTabPaneBorder(java.awt.Graphics2D g, TabPane tabpane, int x, int y, int width, int height, int top, int left, int right, int bottom)
          Paints the tab border.
 void paintTitleLabel(java.awt.Graphics2D g, int tabplacement, int width, int height, java.awt.Insets insets, boolean isActive, boolean hasFocus)
          Paint the title label
 void updateUI()
          Update the UI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DockGUIImpl

public DockGUIImpl()
Constructs a new DockGUIImpl.

Method Detail

updateUI

public void updateUI()
Description copied from interface: DockGUI
Update the UI.

Specified by:
updateUI in interface DockGUI

paintTitleLabel

public void paintTitleLabel(java.awt.Graphics2D g,
                            int tabplacement,
                            int width,
                            int height,
                            java.awt.Insets insets,
                            boolean isActive,
                            boolean hasFocus)
Description copied from interface: DockGUI
Paint the title label

Specified by:
paintTitleLabel in interface DockGUI
Parameters:
g - the graphics to paint into.
tabplacement - the tabplacement.
width - width of the label.
height - hneight of the label.
insets - insets of the label.
isActive - whether label is active.
hasFocus - whether label has focus.

paintTabButton

public void paintTabButton(java.awt.Graphics2D g,
                           int tabplacement,
                           int width,
                           int height,
                           java.awt.Insets insets,
                           boolean isActive,
                           boolean hasFocus)
Description copied from interface: DockGUI
Paints a tab button.

Specified by:
paintTabButton in interface DockGUI
Parameters:
g - the graphics to paint into.
tabplacement - the tabplacement.
width - the width of the button.
height - the height of the button.
insets - the insets of the button.
isActive - whether the button is active.
hasFocus - whether the button has focus.

paintButtonBorders

public void paintButtonBorders(java.awt.Graphics2D g,
                               int tabplacement,
                               java.awt.Rectangle[] rs,
                               int activeIndex)
Description copied from interface: DockGUI
Paints button borders.

Specified by:
paintButtonBorders in interface DockGUI
Parameters:
g - the graphics to paint into.
tabplacement - the tabplacement.
rs - the boundaries.
activeIndex - index of active item.

paintHeaderGap

public void paintHeaderGap(java.awt.Graphics2D g,
                           int tabplacement,
                           int width,
                           int height,
                           java.awt.Insets insets)
Description copied from interface: DockGUI
Paints the header gap.

Specified by:
paintHeaderGap in interface DockGUI
Parameters:
g - the graphics to paint into.
tabplacement - the tabplacement.
width - the width of the gap.
height - the height of the gap.
insets - the insets of the gap.

paintHeaderToolbar

public void paintHeaderToolbar(java.awt.Graphics2D g,
                               int tabplacement,
                               int width,
                               int height,
                               java.awt.Insets insets)
Description copied from interface: DockGUI
Paints the header toolbar.

Specified by:
paintHeaderToolbar in interface DockGUI
Parameters:
g - the graphics to paint into.
tabplacement - the tabplacement.
width - the width of the toolbar.
height - the height of the toolbar.
insets - the insets of the toolbar.

paintContentBorder

public void paintContentBorder(java.awt.Graphics2D g,
                               int tabplacement,
                               int width,
                               int height,
                               java.awt.Insets insets)
Description copied from interface: DockGUI
Paints the content border.

Specified by:
paintContentBorder in interface DockGUI
Parameters:
g - the graphics to paint into.
tabplacement - the tabplacement.
width - the width of the content border.
height - the height of the content border.
insets - the insets of the content border.

paintTabPaneBorder

public void paintTabPaneBorder(java.awt.Graphics2D g,
                               TabPane tabpane,
                               int x,
                               int y,
                               int width,
                               int height,
                               int top,
                               int left,
                               int right,
                               int bottom)
Description copied from interface: DockGUI
Paints the tab border.

Specified by:
paintTabPaneBorder in interface DockGUI
Parameters:
g - the graphics to paint into.
tabpane - the tabpane.
x - the x coordinate.
y - the y coordinate.
width - the width.
height - the height.
top - the top inset.
left - the left inset.
right - the right inset.
bottom - the bottom inset.


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.