org.jvnet.substance.grip
Class NullGripPainter

java.lang.Object
  extended by org.jvnet.substance.grip.NullGripPainter
All Implemented Interfaces:
GripPainter

public class NullGripPainter
extends java.lang.Object
implements GripPainter

Implementation of grip painter that paints nothing.

Author:
Kirill Grouchnikov

Constructor Summary
NullGripPainter()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullGripPainter

public NullGripPainter()
Method Detail

paintGrip

public void paintGrip(javax.swing.JComponent comp,
                      java.awt.Graphics graphics,
                      SubstanceTheme theme,
                      java.awt.Rectangle gripArea,
                      boolean isGripVertical,
                      java.awt.ComponentOrientation gripOrientation)
Description copied from interface: GripPainter
Paints the grip.

Specified by:
paintGrip in interface GripPainter
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

public java.lang.String getDisplayName()
Description copied from interface: GripPainter
Returns the display name of this grip painter.

Specified by:
getDisplayName in interface GripPainter
Returns:
Display name of this grip painter.