Class WindowsClassicStatusBarUI


public class WindowsClassicStatusBarUI extends BasicStatusBarUI
Author:
rbair
  • Constructor Details

    • WindowsClassicStatusBarUI

      public WindowsClassicStatusBarUI()
      Creates a new instance of BasicStatusBarUI
  • Method Details

    • createUI

      public static ComponentUI createUI(JComponent c)
      Returns an instance of the UI delegate for the specified component. Each subclass must provide its own static createUI method that returns an instance of that UI delegate subclass. If the UI delegate subclass is stateless, it may return an instance that is shared by multiple components. If the UI delegate is stateful, then it should return a new instance per component. The default implementation of this method throws an error, as it should never be invoked.
    • paintBackground

      protected void paintBackground(Graphics2D g, JXStatusBar bar)
      Description copied from class: BasicStatusBarUI
      TODO doc
      Overrides:
      paintBackground in class BasicStatusBarUI
      Parameters:
      g - the Graphics context in which to paint
      bar - status bar
    • paintSeparator

      protected void paintSeparator(Graphics2D g, JXStatusBar bar, int x, int y, int w, int h)
      Description copied from class: BasicStatusBarUI
      Paint a Separator (a simple line).
      Overrides:
      paintSeparator in class BasicStatusBarUI
      Parameters:
      g - the Graphics context in which to paint
      bar - status bar
      x - the x coordinate.
      y - the y coordinate.
      w - the width of the separator.
      h - the height of the separator.
    • getSeparatorWidth

      protected int getSeparatorWidth()
      Description copied from class: BasicStatusBarUI
      Separator Width
      Overrides:
      getSeparatorWidth in class BasicStatusBarUI
      Returns:
      constant 10
    • createBorder

      protected BorderUIResource createBorder()
      Description copied from class: BasicStatusBarUI
      create Empty Border
      Overrides:
      createBorder in class BasicStatusBarUI
      Returns:
      BorderUIResource