Java™ Platform
Standard Ed. 8
javax.swing.plaf.basic

Class BasicToolBarUI.DragWindow

    • Method Detail

      • getOrientation

        public int getOrientation()
        Returns the orientation of the toolbar window when the toolbar is floating. The orientation is either one of JToolBar.HORIZONTAL or JToolBar.VERTICAL.
        Returns:
        the orientation of the toolbar window
        Since:
        1.6
      • setOrientation

        public void setOrientation(int o)
      • getOffset

        public Point getOffset()
      • setOffset

        public void setOffset(Point p)
      • setBorderColor

        public void setBorderColor(Color c)
      • getBorderColor

        public Color getBorderColor()
      • paint

        public void paint(Graphics g)
        Description copied from class: Window
        Paints the container. This forwards the paint to any lightweight components that are children of this container. If this method is reimplemented, super.paint(g) should be called so that lightweight components are properly rendered. If a child component is entirely clipped by the current clipping setting in g, paint() will not be forwarded to that child.
        Overrides:
        paint in class Window
        Parameters:
        g - the specified Graphics window
        See Also:
        Component.update(Graphics)
      • getInsets

        public Insets getInsets()
        Description copied from class: Container
        Determines the insets of this container, which indicate the size of the container's border.

        A Frame object, for example, has a top inset that corresponds to the height of the frame's title bar.

        Overrides:
        getInsets in class Container
        Returns:
        the insets of this container.
        See Also:
        Insets, LayoutManager
Java™ Platform
Standard Ed. 8

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2022, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.

微信小程序

微信扫一扫体验

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部