Package com.jidesoft.plaf.xerto
Class VerticalLabelUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.LabelUI
javax.swing.plaf.basic.BasicLabelUI
com.jidesoft.plaf.xerto.VerticalLabelUI
- All Implemented Interfaces:
PropertyChangeListener,EventListener
VerticalLabelUI - used to replace the UI on a JLabel to make it vertical
- Version:
- 1.0
- Author:
- Created by Jasper Potts (10-Jun-2004)
-
Field Summary
FieldsFields inherited from class javax.swing.plaf.basic.BasicLabelUI
labelUI -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the flag indicating if the icon should be rotated.voidpaint(Graphics i_oGraphics, JComponent i_oComponent) voidsetRotateIcon(boolean rotateIcon) Sets the flag indicating if the icon should be rotated.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, uninstallUIMethods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
-
Field Details
-
clockwise
protected boolean clockwise
-
-
Constructor Details
-
VerticalLabelUI
public VerticalLabelUI(boolean clockwise)
-
-
Method Details
-
getPreferredSize
- Overrides:
getPreferredSizein classBasicLabelUI
-
paint
- Overrides:
paintin classBasicLabelUI
-
isRotateIcon
public boolean isRotateIcon()Gets the flag indicating if the icon should be rotated.- Returns:
- true if the icon should be rotated with the text. Otherwise false.
- Since:
- 3.5.5
-
setRotateIcon
public void setRotateIcon(boolean rotateIcon) Sets the flag indicating if the icon should be rotated. By default the value is true.- Parameters:
rotateIcon- the flag- Since:
- 3.5.5
-