com.alee.extended.label
Class WebVerticalLabelUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.LabelUI
          extended by javax.swing.plaf.basic.BasicLabelUI
              extended by com.alee.laf.label.WebLabelUI
                  extended by com.alee.extended.label.WebVerticalLabelUI
All Implemented Interfaces:
Styleable, BorderMethods, SwingMethods, java.beans.PropertyChangeListener, java.util.EventListener

public class WebVerticalLabelUI
extends WebLabelUI

Custom UI for WebVerticalLabel component.

Author:
Mikle Garin

Field Summary
protected  boolean clockwise
          Style settings.
 
Fields inherited from class com.alee.laf.label.WebLabelUI
drawShade, label, margin, painter, propertyChangeListener, styleId
 
Fields inherited from class javax.swing.plaf.basic.BasicLabelUI
labelUI
 
Constructor Summary
WebVerticalLabelUI()
           
 
Method Summary
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
          Returns an instance of the WebVerticalLabelUI for the specified component.
 int getBaseline(javax.swing.JComponent c, int width, int height)
           
 java.awt.Component.BaselineResizeBehavior getBaselineResizeBehavior(javax.swing.JComponent c)
           
 boolean isClockwise()
           
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
          Paints label.
 void setClockwise(boolean clockwise)
           
 
Methods inherited from class com.alee.laf.label.WebLabelUI
getMargin, getPainter, getPreferredSize, getShadeColor, getStyleId, getTransparency, installUI, isDrawShade, setDrawShade, setMargin, setPainter, setShadeColor, setStyleId, setTransparency, uninstallUI, updateBorder
 
Methods inherited from class javax.swing.plaf.basic.BasicLabelUI
getMaximumSize, getMinimumSize, installComponents, installDefaults, installKeyboardActions, installListeners, layoutCL, paintDisabledText, paintEnabledText, propertyChange, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners
 
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 Detail

clockwise

protected boolean clockwise
Style settings.

Constructor Detail

WebVerticalLabelUI

public WebVerticalLabelUI()
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
Returns an instance of the WebVerticalLabelUI for the specified component. This tricky method is used by UIManager to create component UIs when needed.

Parameters:
c - component that will use UI instance
Returns:
instance of the WebVerticalLabelUI

isClockwise

public boolean isClockwise()

setClockwise

public void setClockwise(boolean clockwise)

getBaseline

public int getBaseline(javax.swing.JComponent c,
                       int width,
                       int height)
Overrides:
getBaseline in class javax.swing.plaf.basic.BasicLabelUI

getBaselineResizeBehavior

public java.awt.Component.BaselineResizeBehavior getBaselineResizeBehavior(javax.swing.JComponent c)
Overrides:
getBaselineResizeBehavior in class javax.swing.plaf.basic.BasicLabelUI

paint

public void paint(java.awt.Graphics g,
                  javax.swing.JComponent c)
Description copied from class: WebLabelUI
Paints label.

Overrides:
paint in class WebLabelUI
Parameters:
g - graphics
c - component