org.jext.gui
Class JextMenuSeparatorUI

java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.SeparatorUI
javax.swing.plaf.basic.BasicSeparatorUI
javax.swing.plaf.metal.MetalSeparatorUI
org.jext.gui.JextMenuSeparatorUI
- public class JextMenuSeparatorUI
- extends javax.swing.plaf.metal.MetalSeparatorUI
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JextMenuSeparatorUI
public JextMenuSeparatorUI()
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
- Description copied from class:
javax.swing.plaf.metal.MetalSeparatorUI
- Returns a shared instance of
MetalSeparatorUI.
paint
public void paint(java.awt.Graphics g,
javax.swing.JComponent c)
- Description copied from class:
javax.swing.plaf.metal.MetalSeparatorUI
- The separator is made of two lines. The top line will be
the Metal theme color separatorForeground (or left line if it's vertical).
The bottom or right line will be the Metal theme color
separatorBackground.
The two lines will
be centered inside the bounds box. If the separator is horizontal,
then it will be vertically centered, or if it's vertical, it will
be horizontally centered.
getPreferredSize
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
- Description copied from class:
javax.swing.plaf.basic.BasicSeparatorUI
- This method returns the preferred size of the
JComponent.