Class MetalBorders.ToolBarBorder

java.lang.Object
javax.swing.border.AbstractBorder
javax.swing.plaf.metal.MetalBorders.ToolBarBorder
All Implemented Interfaces:
Serializable, Border, UIResource, SwingConstants
Enclosing class:
MetalBorders

public static class MetalBorders.ToolBarBorder extends AbstractBorder implements UIResource, SwingConstants
The class represents the border of a JToolBar.
  • Field Summary

    Fields declared in interface SwingConstants

    BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
    Modifier and Type
    Field
    Description
    static final int
    Box-orientation constant used to specify the bottom of a box.
    static final int
    The central position in an area.
    static final int
    Compass-direction east (right).
    static final int
    Horizontal orientation.
    static final int
    Identifies the leading edge of text for use with left-to-right and right-to-left languages.
    static final int
    Box-orientation constant used to specify the left side of a box.
    static final int
    Identifies the next direction in a sequence.
    static final int
    Compass-direction North (up).
    static final int
    Compass-direction north-east (upper right).
    static final int
    Compass-direction north west (upper left).
    static final int
    Identifies the previous direction in a sequence.
    static final int
    Box-orientation constant used to specify the right side of a box.
    static final int
    Compass-direction south (down).
    static final int
    Compass-direction south-east (lower right).
    static final int
    Compass-direction south-west (lower left).
    static final int
    Box-orientation constant used to specify the top of a box.
    static final int
    Identifies the trailing edge of text for use with left-to-right and right-to-left languages.
    static final int
    Vertical orientation.
    static final int
    Compass-direction west (left).
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a ToolBarBorder.
  • Method Summary

    Methods declared in class AbstractBorder

    getBaseline, getBaselineResizeBehavior, getBorderInsets, getBorderInsets, getInteriorRectangle, getInteriorRectangle, isBorderOpaque, paintBorder
    Modifier and Type
    Method
    Description
    int
    getBaseline(Component c, int width, int height)
    Returns the baseline.
    Returns an enum indicating how the baseline of a component changes as the size changes.
    This default implementation returns a new Insets object that is initialized by the AbstractBorder.getBorderInsets(Component,Insets) method.
    Reinitializes the insets parameter with this Border's current Insets.
    getInteriorRectangle(Component c, int x, int y, int width, int height)
    This convenience method calls the static method.
    static Rectangle
    getInteriorRectangle(Component c, Border b, int x, int y, int width, int height)
    Returns a rectangle using the arguments minus the insets of the border.
    boolean
    This default implementation returns false.
    void
    paintBorder(Component c, Graphics g, int x, int y, int width, int height)
    This default implementation does no painting.

    Methods declared in class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    Modifier and Type
    Method
    Description
    protected Object
    Answers a new instance of the same class as the receiver, whose slots have been filled in with the values in the slots of the receiver.
    boolean
    Compares the argument to the receiver, and answers true if they represent the same object using a class specific comparison.
    protected void
    Deprecated, for removal: This API element is subject to removal in a future version.
    May cause performance issues, deadlocks and hangs.
    final Class<? extends Object>
    Answers the unique instance of java.lang.Class which represents the class of the receiver.
    int
    Answers an integer hash code for the receiver.
    final void
    Causes one thread which is waiting on the receiver to be made ready to run.
    final void
    Causes all threads which are waiting on the receiver to be made ready to run.
    Answers a string containing a concise, human-readable description of the receiver.
    final void
    Causes the thread which sent this message to be made not ready to run pending some change in the receiver (as indicated by notify or notifyAll).
    final void
    wait(long time)
    Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated by notify or notifyAll) or the expiration of the timeout.
    final void
    wait(long time, int frac)
    Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated by notify or notifyAll) or the expiration of the timeout.
  • Constructor Details

    • ToolBarBorder

      public ToolBarBorder()
      Constructs a ToolBarBorder.