Class SynthCheckBoxMenuItemUI

All Implemented Interfaces:
PropertyChangeListener, EventListener, SynthConstants, SynthUI

public class SynthCheckBoxMenuItemUI extends SynthMenuItemUI
Provides the Synth L&F UI delegate for JCheckBoxMenuItem.
Since:
1.7
  • Constructor Details

    • SynthCheckBoxMenuItemUI

      public SynthCheckBoxMenuItemUI()
      Constructs a SynthCheckBoxMenuItemUI.
  • Method Details

    • createUI

      public static ComponentUI createUI(JComponent c)
      Creates a new UI object for the given component.
      Parameters:
      c - component to create UI object for
      Returns:
      the UI object
    • getPropertyPrefix

      protected String getPropertyPrefix()
      Returns a property prefix.
      Overrides:
      getPropertyPrefix in class BasicMenuItemUI
      Returns:
      a property prefix
    • paintBorder

      public void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
      Paints the border.
      Specified by:
      paintBorder in interface SynthUI
      Overrides:
      paintBorder in class SynthMenuItemUI
      Parameters:
      context - a component context
      g - Graphics to paint on
      x - the X coordinate
      y - the Y coordinate
      w - width of the border
      h - height of the border