Documentation of 'org.jhotdraw.gui.plaf.palette.PaletteToolBarUI' Java class
PaletteToolBarUI
org.jhotdraw.gui.plaf.palette

Class PaletteToolBarUI

  • All Implemented Interfaces:
    javax.swing.SwingConstants


    public class PaletteToolBarUI
    extends javax.swing.plaf.ToolBarUI
    implements javax.swing.SwingConstants
    ToolBarUI for palette components.

    This UI differs from BasicToolBarUI, in that the component holding the toolbar is supposed to use BoxLayout instead of BorderLayout. This allows to have multiple toolbars in the same component. The toolbars can be reorderd in the component, but they are not allowed to float in their own floating window.

    The JToolBar starts dragging only, if the drag starts over the insets of its border.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class and Description
      class  PaletteToolBarUI.DockingListener
      This class should be treated as a "protected" inner class.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String TOOLBAR_ICON_PROPERTY 
      static java.lang.String TOOLBAR_INSETS_OVERRIDE_PROPERTY 
      static java.lang.String TOOLBAR_TEXT_ICON_GAP_PROPERTY 
      • Fields inherited from interface javax.swing.SwingConstants

        BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
    • Constructor Summary

      Constructors 
      Constructor and Description
      PaletteToolBarUI() 
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean canDock(java.awt.Component c, java.awt.Point p) 
      static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c) 
      java.awt.Color getDockingColor()
      Gets the color displayed when over a docking area
      java.awt.Color getFloatingColor()
      Gets the color displayed when over a floating area
      void installUI(javax.swing.JComponent c) 
      boolean isFloating() 
      boolean isRolloverBorders()
      Returns a flag to determine whether rollover button borders are enabled.
      void setDockingColor(java.awt.Color c)
      Sets the color displayed when over a docking area
      void setFloating(boolean b, java.awt.Point p) 
      void setFloatingColor(java.awt.Color c)
      Sets the color displayed when over a floating area
      void setFloatingLocation(int x, int y) 
      void setOrientation(int orientation) 
      void setRolloverBorders(boolean rollover)
      Sets the flag for enabling rollover borders on the toolbar and it will also install the apropriate border depending on the state of the flag.
      void uninstallUI(javax.swing.JComponent c) 
      • Methods inherited from class javax.swing.plaf.ComponentUI

        contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, paint, update
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • TOOLBAR_ICON_PROPERTY

        public static final java.lang.String TOOLBAR_ICON_PROPERTY
        See Also:
        Constant Field Values
      • TOOLBAR_TEXT_ICON_GAP_PROPERTY

        public static final java.lang.String TOOLBAR_TEXT_ICON_GAP_PROPERTY
        See Also:
        Constant Field Values
      • TOOLBAR_INSETS_OVERRIDE_PROPERTY

        public static final java.lang.String TOOLBAR_INSETS_OVERRIDE_PROPERTY
        See Also:
        Constant Field Values
    • Constructor Detail

      • PaletteToolBarUI

        public PaletteToolBarUI()
    • Method Detail

      • createUI

        public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
      • installUI

        public void installUI(javax.swing.JComponent c)
        Overrides:
        installUI in class javax.swing.plaf.ComponentUI
      • uninstallUI

        public void uninstallUI(javax.swing.JComponent c)
        Overrides:
        uninstallUI in class javax.swing.plaf.ComponentUI
      • isRolloverBorders

        public boolean isRolloverBorders()
        Returns a flag to determine whether rollover button borders are enabled.
        Returns:
        true if rollover borders are enabled; false otherwise
        Since:
        1.4
        See Also:
        setRolloverBorders(boolean)
      • setRolloverBorders

        public void setRolloverBorders(boolean rollover)
        Sets the flag for enabling rollover borders on the toolbar and it will also install the apropriate border depending on the state of the flag.
        Parameters:
        rollover - if true, rollover borders are installed. Otherwise non-rollover borders are installed
        Since:
        1.4
        See Also:
        isRolloverBorders()
      • setFloatingLocation

        public void setFloatingLocation(int x,
                                        int y)
      • isFloating

        public boolean isFloating()
      • setFloating

        public void setFloating(boolean b,
                                @Nullable
                                java.awt.Point p)
      • setOrientation

        public void setOrientation(int orientation)
      • getDockingColor

        public java.awt.Color getDockingColor()
        Gets the color displayed when over a docking area
      • setDockingColor

        public void setDockingColor(java.awt.Color c)
        Sets the color displayed when over a docking area
      • getFloatingColor

        public java.awt.Color getFloatingColor()
        Gets the color displayed when over a floating area
      • setFloatingColor

        public void setFloatingColor(java.awt.Color c)
        Sets the color displayed when over a floating area
      • canDock

        public boolean canDock(java.awt.Component c,
                               java.awt.Point p)

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.