Class VerticalLabelUI

All Implemented Interfaces:
PropertyChangeListener, EventListener

public class VerticalLabelUI extends BasicLabelUI
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 Details

    • clockwise

      protected boolean clockwise
  • Constructor Details

    • VerticalLabelUI

      public VerticalLabelUI(boolean clockwise)
  • Method Details

    • getPreferredSize

      public Dimension getPreferredSize(JComponent c)
      Overrides:
      getPreferredSize in class BasicLabelUI
    • paint

      public void paint(Graphics i_oGraphics, JComponent i_oComponent)
      Overrides:
      paint in class BasicLabelUI
    • 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