All Packages Class Hierarchy This Package Previous Next Index
Class java.awt.swing.jlf.JLFOldTabbedPaneUI
java.lang.Object
|
+----java.awt.swing.plaf.ComponentUI
|
+----java.awt.swing.plaf.TabbedPaneUI
|
+----java.awt.swing.basic.BasicTabbedPaneUI
|
+----java.awt.swing.jlf.JLFOldTabbedPaneUI
- public class JLFOldTabbedPaneUI
- extends BasicTabbedPaneUI
- implements MouseMotionListener
A Java L&F extension of BasicTabbedPaneUI.
selectedTabTextColor-
selectedTriangleColor-
tabThatTheMouseIsOver-
triangleColor-
JLFOldTabbedPaneUI()
-
arrangeTabs(int, int, int, int, int, Font, int, int, int, JTabbedPane)
-
calculateXNudge(Rectangle)
- Overidden to do nothing for the Java L&F.
calculateYNudge(Rectangle)
- Overidden to do nothing for the Java L&F.
createUI(JComponent)
-
drawLineBelowTabs(Graphics, int, int, int)
- this function draws the line which separates the tabs from the content area below.
drawTabBorder(Graphics, int, int, int, int)
- Overidden to do nothing for the Java L&F.
getTabThatTheMouseIsOver()
-
installUI(JComponent)
-
layoutLabel(FontMetrics, String, Icon, Rectangle, Rectangle, Rectangle, boolean)
-
mouseDragged(MouseEvent)
-
mouseMoved(MouseEvent)
-
padSelectedTab(JTabbedPane)
-
paint(Graphics, JComponent)
-
paintTab(Graphics, JTabbedPane, Rectangle[], int, Rectangle, Rectangle)
- This override adds the triangle to the left.
paintTabBackground(Graphics, int, int, int, int)
-
paintText(Graphics, JTabbedPane, String, int, Font, Rectangle, FontMetrics, boolean)
-
selectTabBelow(JTabbedPane)
-
setTabThatTheMouseIsOver(JComponent, int)
-
tabWidth(JTabbedPane, int, FontMetrics)
- We add the width of the triangle.
uninstallUI(JComponent)
-
selectedTriangleColor
protected Color selectedTriangleColor
triangleColor
protected Color triangleColor
selectedTabTextColor
protected Color selectedTabTextColor
tabThatTheMouseIsOver
protected int tabThatTheMouseIsOver
JLFOldTabbedPaneUI
public JLFOldTabbedPaneUI()
createUI
public static ComponentUI createUI(JComponent x)
installUI
public void installUI(JComponent container)
- Overrides:
- installUI in class BasicTabbedPaneUI
uninstallUI
public void uninstallUI(JComponent container)
- Overrides:
- uninstallUI in class BasicTabbedPaneUI
drawTabBorder
protected void drawTabBorder(Graphics g,
int x,
int y,
int w,
int h)
- Overidden to do nothing for the Java L&F.
- Overrides:
- drawTabBorder in class BasicTabbedPaneUI
paintTabBackground
protected void paintTabBackground(Graphics g,
int x,
int y,
int w,
int h)
- Overrides:
- paintTabBackground in class BasicTabbedPaneUI
tabWidth
protected int tabWidth(JTabbedPane pane,
int index,
FontMetrics metrics)
- We add the width of the triangle.
- Overrides:
- tabWidth in class BasicTabbedPaneUI
calculateXNudge
protected int calculateXNudge(Rectangle tabRect)
- Overidden to do nothing for the Java L&F.
- Overrides:
- calculateXNudge in class BasicTabbedPaneUI
calculateYNudge
protected int calculateYNudge(Rectangle tabRect)
- Overidden to do nothing for the Java L&F.
- Overrides:
- calculateYNudge in class BasicTabbedPaneUI
paint
public void paint(Graphics g,
JComponent container)
- Overrides:
- paint in class BasicTabbedPaneUI
paintTab
protected void paintTab(Graphics g,
JTabbedPane pane,
Rectangle[] rects,
int i,
Rectangle iconRect,
Rectangle textRect)
- This override adds the triangle to the left.
- Overrides:
- paintTab in class BasicTabbedPaneUI
paintText
protected void paintText(Graphics g,
JTabbedPane pane,
String title,
int tabIndex,
Font font,
Rectangle textRect,
FontMetrics metrics,
boolean isSelected)
- Overrides:
- paintText in class BasicTabbedPaneUI
selectTabBelow
protected void selectTabBelow(JTabbedPane pane)
- Overrides:
- selectTabBelow in class BasicTabbedPaneUI
layoutLabel
protected void layoutLabel(FontMetrics metrics,
String title,
Icon icon,
Rectangle tabRect,
Rectangle iconRect,
Rectangle textRect,
boolean isSelected)
- Overrides:
- layoutLabel in class BasicTabbedPaneUI
setTabThatTheMouseIsOver
public void setTabThatTheMouseIsOver(JComponent c,
int tabIndex)
getTabThatTheMouseIsOver
public int getTabThatTheMouseIsOver()
arrangeTabs
protected void arrangeTabs(int paddingExemptRow,
int firstRowIndent,
int otherRowIndent,
int maxTabHeight,
int overlay,
Font font,
int maxX,
int returnAt,
int tabCount,
JTabbedPane pane)
- Overrides:
- arrangeTabs in class BasicTabbedPaneUI
padSelectedTab
protected void padSelectedTab(JTabbedPane pane)
- Overrides:
- padSelectedTab in class BasicTabbedPaneUI
drawLineBelowTabs
protected void drawLineBelowTabs(Graphics g,
int selectedIndex,
int tabHeight,
int width)
- this function draws the line which separates the tabs from the content area below.
- Overrides:
- drawLineBelowTabs in class BasicTabbedPaneUI
mouseMoved
public void mouseMoved(MouseEvent e)
mouseDragged
public void mouseDragged(MouseEvent e)
All Packages Class Hierarchy This Package Previous Next Index
Submit a bug or feature