org.jvnet.substance.grip
Interface GripPainter

All Known Implementing Classes:
DragBumpsGripPainter, NullGripPainter

public interface GripPainter

Base interface for grip painters.

Author:
Kirill Grouchnikov
See Also:
SubstanceLookAndFeel.GRIP_PAINTER

Method Summary
 java.lang.String getDisplayName()
          Returns the display name of this grip painter.
 void paintGrip(javax.swing.JComponent comp, java.awt.Graphics graphics, SubstanceTheme theme, java.awt.Rectangle gripArea, boolean isGripVertical, java.awt.ComponentOrientation gripOrientation)
          Paints the grip.
 

Method Detail

paintGrip

void paintGrip(javax.swing.JComponent comp,
               java.awt.Graphics graphics,
               SubstanceTheme theme,
               java.awt.Rectangle gripArea,
               boolean isGripVertical,
               java.awt.ComponentOrientation gripOrientation)
Paints the grip.

Parameters:
comp - The associated component.
graphics - Graphics to paint on.
theme - Theme for the grip painting.
gripArea - The area of the scroll thumb. The grip painting must not exceed this area.
isGripVertical - true, if the scroll bar is vertical, false otherwise.
gripOrientation - Orientation of the component. Right-to-left painting algorithm can consult this parameter as necessary.

getDisplayName

java.lang.String getDisplayName()
Returns the display name of this grip painter.

Returns:
Display name of this grip painter.