Class LensDemo.VerticalLabelUI

  • All Implemented Interfaces:
    java.beans.PropertyChangeListener, java.util.EventListener
    Enclosing class:
    LensDemo

    static class LensDemo.VerticalLabelUI
    extends javax.swing.plaf.basic.BasicLabelUI
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean clockwise  
      private static java.awt.Rectangle paintIconR  
      private static java.awt.Rectangle paintTextR  
      private static java.awt.Insets paintViewInsets  
      private static java.awt.Rectangle paintViewR  
      • Fields inherited from class javax.swing.plaf.basic.BasicLabelUI

        labelUI
    • Constructor Summary

      Constructors 
      Constructor Description
      VerticalLabelUI​(boolean clockwise)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.Dimension getPreferredSize​(javax.swing.JComponent c)  
      void paint​(java.awt.Graphics g, javax.swing.JComponent c)  
      • 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, uninstallUI
      • 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
      • paintIconR

        private static java.awt.Rectangle paintIconR
      • paintTextR

        private static java.awt.Rectangle paintTextR
      • paintViewR

        private static java.awt.Rectangle paintViewR
      • paintViewInsets

        private static java.awt.Insets paintViewInsets
    • Constructor Detail

      • VerticalLabelUI

        VerticalLabelUI​(boolean clockwise)
    • Method Detail

      • getPreferredSize

        public java.awt.Dimension getPreferredSize​(javax.swing.JComponent c)
        Overrides:
        getPreferredSize in class javax.swing.plaf.basic.BasicLabelUI
      • paint

        public void paint​(java.awt.Graphics g,
                          javax.swing.JComponent c)
        Overrides:
        paint in class javax.swing.plaf.basic.BasicLabelUI