public class RotatedLabelUI extends BasicLabelUI
Modifier and Type | Field and Description |
---|---|
protected boolean |
mirrorHorizontally |
protected boolean |
mirrorVertically |
protected boolean |
rotateByNinty |
labelUI
Constructor and Description |
---|
RotatedLabelUI() |
RotatedLabelUI(boolean mirrorHorizontally,
boolean mirrorVertically,
boolean rotateByNinty) |
Modifier and Type | Method and Description |
---|---|
Dimension |
getPreferredSize(JComponent c)
Get the preferred size for this component.
|
boolean |
isMirrorHorizontally() |
boolean |
isMirrorVertically() |
boolean |
isRotateByNinty() |
static void |
main(String[] args) |
void |
paint(Graphics g,
JComponent c)
Paint the component
|
void |
setMirrorHorizontally(boolean mirrorHorizontally) |
void |
setMirrorVertically(boolean mirrorVertically) |
void |
setRotateByNinty(boolean rotateByNinty) |
createUI, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, layoutCL, paintDisabledText, paintEnabledText, propertyChange, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
protected boolean mirrorHorizontally
protected boolean mirrorVertically
protected boolean rotateByNinty
public RotatedLabelUI()
public RotatedLabelUI(boolean mirrorHorizontally, boolean mirrorVertically, boolean rotateByNinty)
public Dimension getPreferredSize(JComponent c)
getPreferredSize
in class BasicLabelUI
public boolean isMirrorHorizontally()
public void setMirrorHorizontally(boolean mirrorHorizontally)
public boolean isMirrorVertically()
public void setMirrorVertically(boolean mirrorVertically)
public boolean isRotateByNinty()
public void setRotateByNinty(boolean rotateByNinty)
public void paint(Graphics g, JComponent c)
paint
in class BasicLabelUI
public static void main(String[] args)
Copyright © 2013. All Rights Reserved.