org.tbee.swing
Class VerticalTextIcon
java.lang.Object
org.tbee.swing.VerticalTextIcon
- All Implemented Interfaces:
- Icon, SwingConstants
public class VerticalTextIcon
- extends Object
- implements Icon, 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 $
| 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SOURCECODE_VERSION
public static final String SOURCECODE_VERSION
- Standard variable for determining version of a class file.
- See Also:
- Constant Field Values
VerticalTextIcon
public VerticalTextIcon(String text,
boolean clockwize)
paintIcon
public void paintIcon(Component c,
Graphics g,
int x,
int y)
- Specified by:
paintIcon in interface Icon
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidth in interface Icon
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeight in interface Icon
createTabbedPane
public static JTabbedPane createTabbedPane(int tabPlacement)
- Create a JTabbedPane that supports vertical icons
- Parameters:
tabPlacement -
- Returns:
addTab
public static void addTab(JTabbedPane tabPane,
String tablabel,
Component tabcontents)
- Add a vertical icon to a JTabbedPane as a tab
main
public static void main(String[] args)
Copyright © 2012 KnowledgePlaza. All Rights Reserved.