Package PamView.dialog
Class VerticalLabelUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.LabelUI
javax.swing.plaf.basic.BasicLabelUI
PamView.dialog.VerticalLabelUI
- All Implemented Interfaces:
PropertyChangeListener
,EventListener
UI for rotating text in VerticalLabel
- Author:
- Gratefully taken from http://tech.chitgoks.com/2009/11/13/rotate-jlabel-vertically/
-
Constructor Summary
-
Method Summary
Methods inherited from class javax.swing.plaf.basic.BasicLabelUI
createUI, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, installUI, propertyChange, uninstallUI
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
-
Constructor Details
-
VerticalLabelUI
public VerticalLabelUI(double rotAngle) - Parameters:
rotAngle
-
-
VerticalLabelUI
public VerticalLabelUI(boolean clockwise)
-
-
Method Details
-
getPreferredSize
- Overrides:
getPreferredSize
in classBasicLabelUI
-
paint
- Overrides:
paint
in classBasicLabelUI
-