org.tbee.swing
Class VerticalTextIcon
java.lang.Object
org.tbee.swing.VerticalTextIcon
- All Implemented Interfaces:
- javax.swing.Icon, javax.swing.SwingConstants
public class VerticalTextIcon
- extends java.lang.Object
- implements javax.swing.Icon, javax.swing.SwingConstants
A vertical text icon especially interesting for JTabbedPane where the icon can be put rotated on the side (instead of straight up).
- Version:
- $Revision: 1.4 $
|
Field Summary |
static java.lang.String |
SOURCECODE_VERSION
Standard variable for determining version of a class file. |
| Fields inherited from interface javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
|
Method Summary |
static void |
addTab(javax.swing.JTabbedPane tabPane,
java.lang.String tablabel,
java.awt.Component tabcontents)
Add a vertical icon to a JTabbedPane as a tab |
static javax.swing.JTabbedPane |
createTabbedPane(int tabPlacement)
Create a JTabbedPane that supports vertical icons |
int |
getIconHeight()
|
int |
getIconWidth()
|
static void |
main(java.lang.String[] args)
|
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SOURCECODE_VERSION
public static final java.lang.String SOURCECODE_VERSION
- Standard variable for determining version of a class file.
- See Also:
- Constant Field Values
VerticalTextIcon
public VerticalTextIcon(java.lang.String text,
boolean clockwize)
paintIcon
public void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
- Specified by:
paintIcon in interface javax.swing.Icon
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidth in interface javax.swing.Icon
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeight in interface javax.swing.Icon
createTabbedPane
public static javax.swing.JTabbedPane createTabbedPane(int tabPlacement)
- Create a JTabbedPane that supports vertical icons
- Parameters:
tabPlacement -
- Returns:
addTab
public static void addTab(javax.swing.JTabbedPane tabPane,
java.lang.String tablabel,
java.awt.Component tabcontents)
- Add a vertical icon to a JTabbedPane as a tab
main
public static void main(java.lang.String[] args)
Copyright © 2010 KnowledgePlaza. All Rights Reserved.