javax.swing.plaf.basic

Class BasicToolBarUI.DragWindow

protected class BasicToolBarUI.DragWindow extends Window

This is the window that appears when the JToolBar is being dragged around.
Method Summary
ColorgetBorderColor()
The color that the border should be.
InsetsgetInsets()
This method returns the insets for the DragWindow.
PointgetOffset()
This method returns the mouse offset from the top left corner of the DragWindow.
voidpaint(Graphics g)
This method paints the DragWindow.
voidsetBorderColor(Color c)
This method changes the border color.
voidsetOffset(Point p)
This method changes the mouse offset.
voidsetOrientation(int o)
Sets the orientation of the toolbar and the drag window.

Method Detail

getBorderColor

public Color getBorderColor()
The color that the border should be.

Returns: The border color.

getInsets

public Insets getInsets()
This method returns the insets for the DragWindow.

Returns: The insets for the DragWindow.

getOffset

public Point getOffset()
This method returns the mouse offset from the top left corner of the DragWindow.

Returns: The mouse offset.

paint

public void paint(Graphics g)
This method paints the DragWindow.

Parameters: g The Graphics object to paint with.

setBorderColor

public void setBorderColor(Color c)
This method changes the border color.

Parameters: c The new border color.

setOffset

public void setOffset(Point p)
This method changes the mouse offset.

Parameters: p The new mouse offset.

setOrientation

public void setOrientation(int o)
Sets the orientation of the toolbar and the drag window.

Parameters: o - the new orientation of the toolbar and drag window.