Package mgui.interfaces.util
Class VerticalLabelUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.LabelUI
javax.swing.plaf.basic.BasicLabelUI
mgui.interfaces.util.VerticalLabelUI
- All Implemented Interfaces:
java.beans.PropertyChangeListener
,java.util.EventListener
public class VerticalLabelUI
extends javax.swing.plaf.basic.BasicLabelUI
Extension of BasicLabelUI to allow vertical rendering of text
See
http://stackoverflow.com/questions/92781/how-do-i-present-text-vertically-in-a-jlabel-java-1-6/92962#92962
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
Fields Modifier and Type Field Description protected boolean
clockwise
Fields inherited from class javax.swing.plaf.basic.BasicLabelUI
labelUI
-
Constructor Summary
Constructors Constructor Description VerticalLabelUI(boolean clockwise)
-
Method Summary
Modifier and Type Method Description java.awt.Dimension
getPreferredSize(javax.swing.JComponent c)
void
paint(java.awt.Graphics g, javax.swing.JComponent c)
Methods inherited from class javax.swing.plaf.basic.BasicLabelUI
createUI, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, layoutCL, paintDisabledText, paintEnabledText, propertyChange, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
clockwise
protected boolean clockwise
-
-
Constructor Details
-
VerticalLabelUI
public VerticalLabelUI(boolean clockwise)
-
-
Method Details
-
getPreferredSize
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)- Overrides:
getPreferredSize
in classjavax.swing.plaf.basic.BasicLabelUI
-
paint
public void paint(java.awt.Graphics g, javax.swing.JComponent c)- Overrides:
paint
in classjavax.swing.plaf.basic.BasicLabelUI
-