com.javadocking.drag.painter
Interface RectanglePainter

All Known Implementing Classes:
DefaultRectanglePainter

public interface RectanglePainter

This painter paints a rectangle on a java.awt.Graphics.

Author:
Heidi Rakels.

Method Summary
 void paintRectangle(java.awt.Graphics graphics, int x, int y, int width, int height)
          Paints a rectangle on the given graphics.
 void setLabel(java.lang.String label)
          Sets the label that has to be painted in the rectangle.
 

Method Detail

paintRectangle

void paintRectangle(java.awt.Graphics graphics,
                    int x,
                    int y,
                    int width,
                    int height)
Paints a rectangle on the given graphics.

Parameters:
graphics - The graphics on which the rectangle should be painted.
x - The x-position of the rectangle on the graphics.
y - The y-position of the rectangle on the graphics.
width - The width of the rectangle.
height - The height of the rectangle.

setLabel

void setLabel(java.lang.String label)
Sets the label that has to be painted in the rectangle.

Parameters:
label - The label that has to be painted in the middle of the rectangle.