Package Summary  Overview Summary

class:MetalScrollButton [CHANGED]

All Implemented Interfaces:
ImageObserver, ItemSelectable, MenuContainer, Serializable, Accessible, SwingConstants

public class MetalScrollButton
extends BasicArrowButton
JButton object for Metal scrollbar arrows.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™JavaBeans has been added to the java.beans package. Please see XMLEncoder.

All Implemented Interfaces:
ImageObserver, ItemSelectable, MenuContainer, Serializable, Accessible, SwingConstants

public class MetalScrollButton
extends BasicArrowButton
JButton object for Metal scrollbar arrows.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.

All Implemented Interfaces:
ImageObserver, ItemSelectable, MenuContainer, Serializable, Accessible, SwingConstants

public class MetalScrollButton
extends BasicArrowButton
JButton object for Metal scrollbar arrows.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans has been added to the java.beans package. Please see XMLEncoder.

constructor:MetalScrollButton(int,int,boolean) [NONE]

  • MetalScrollButton

    public MetalScrollButton?(int direction, int width, boolean freeStanding)
    Constructs an instance of MetalScrollButton.
    Parameters:
    direction - the direction
    width - the width
    freeStanding - the free standing value

method:setFreeStanding(boolean) [NONE]

  • setFreeStanding

    public void setFreeStanding?(boolean freeStanding)
    Sets the free standing value.
    Parameters:
    freeStanding - the free standing value
  • method:paint(java.awt.Graphics) [NONE]

    paint

    public void paint?(Graphics g)
    Description copied from class: JComponent
    Invoked by Swing to draw components. Applications should not invoke paint directly, but should instead use the repaint method to schedule the component for redrawing.

    This method actually delegates the work of painting to three protected methods: paintComponent, paintBorder, and paintChildren. They're called in the order listed to ensure that children appear on top of component itself. Generally speaking, the component and its children should not paint in the insets area allocated to the border. Subclasses can just override this method, as always. A subclass that just wants to specialize the UI (look and feel) delegate's paint method should just override paintComponent.

    Overrides:
    paint in class BasicArrowButton
    Parameters:
    g - the Graphics context in which to paint
    See Also:
    JComponent.paintComponent(java.awt.Graphics), JComponent.paintBorder(java.awt.Graphics), JComponent.paintChildren(java.awt.Graphics), JComponent.getComponentGraphics(java.awt.Graphics), JComponent.repaint(long, int, int, int, int)

    method:getPreferredSize() [NONE]

    getPreferredSize

    public Dimension getPreferredSize()
    Description copied from class: BasicArrowButton
    Returns the preferred size of the BasicArrowButton.
    Overrides:
    getPreferredSize in class BasicArrowButton
    Returns:
    the preferred size
    See Also:
    JComponent.setPreferredSize(java.awt.Dimension), ComponentUI

    method:getMinimumSize() [NONE]

    getMinimumSize

    public Dimension getMinimumSize()
    Description copied from class: BasicArrowButton
    Returns the minimum size of the BasicArrowButton.
    Overrides:
    getMinimumSize in class BasicArrowButton
    Returns:
    the minimum size
    See Also:
    JComponent.setMinimumSize(java.awt.Dimension), ComponentUI

    method:getMaximumSize() [NONE]

    getMaximumSize

    public Dimension getMaximumSize()
    Description copied from class: BasicArrowButton
    Returns the maximum size of the BasicArrowButton.
    Overrides:
    getMaximumSize in class BasicArrowButton
    Returns:
    the maximum size
    See Also:
    JComponent.setMaximumSize(java.awt.Dimension), ComponentUI

    method:getButtonWidth() [NONE]

    getButtonWidth

    public int getButtonWidth()
    Returns the width of the button.
    Returns:
    the width of the button

    © 2020 Oracle Corporation and/or its affiliates