public class MenuItemUIDecorator
extends javax.swing.plaf.MenuItemUI
Subclasses of MenuItemUIDecorator can easily wrap a base MenuItemUI and add new abilities.
Constructor and Description |
---|
MenuItemUIDecorator(javax.swing.plaf.MenuItemUI baseMenuItemUI) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(javax.swing.JComponent c,
int x,
int y) |
boolean |
equals(java.lang.Object obj) |
javax.accessibility.Accessible |
getAccessibleChild(javax.swing.JComponent c,
int i) |
int |
getAccessibleChildrenCount(javax.swing.JComponent c) |
int |
getBaseline(javax.swing.JComponent c,
int width,
int height) |
java.awt.Component.BaselineResizeBehavior |
getBaselineResizeBehavior(javax.swing.JComponent c) |
java.awt.Dimension |
getMaximumSize(javax.swing.JComponent c) |
java.awt.Dimension |
getMinimumSize(javax.swing.JComponent c) |
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c) |
int |
hashCode() |
void |
installUI(javax.swing.JComponent c) |
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c) |
java.lang.String |
toString() |
void |
uninstallUI(javax.swing.JComponent c) |
void |
update(java.awt.Graphics g,
javax.swing.JComponent c) |
public MenuItemUIDecorator(javax.swing.plaf.MenuItemUI baseMenuItemUI)
public void update(java.awt.Graphics g, javax.swing.JComponent c)
update
in class javax.swing.plaf.ComponentUI
public void uninstallUI(javax.swing.JComponent c)
uninstallUI
in class javax.swing.plaf.ComponentUI
public void paint(java.awt.Graphics g, javax.swing.JComponent c)
paint
in class javax.swing.plaf.ComponentUI
public void installUI(javax.swing.JComponent c)
installUI
in class javax.swing.plaf.ComponentUI
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize
in class javax.swing.plaf.ComponentUI
public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
getMinimumSize
in class javax.swing.plaf.ComponentUI
public java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
getMaximumSize
in class javax.swing.plaf.ComponentUI
public int getBaseline(javax.swing.JComponent c, int width, int height)
getBaseline
in class javax.swing.plaf.ComponentUI
public java.awt.Component.BaselineResizeBehavior getBaselineResizeBehavior(javax.swing.JComponent c)
getBaselineResizeBehavior
in class javax.swing.plaf.ComponentUI
public int getAccessibleChildrenCount(javax.swing.JComponent c)
getAccessibleChildrenCount
in class javax.swing.plaf.ComponentUI
public javax.accessibility.Accessible getAccessibleChild(javax.swing.JComponent c, int i)
getAccessibleChild
in class javax.swing.plaf.ComponentUI
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean contains(javax.swing.JComponent c, int x, int y)
contains
in class javax.swing.plaf.ComponentUI