org.jvnet.substance.grip
Class DragBumpsGripPainter
java.lang.Object
org.jvnet.substance.grip.DragBumpsGripPainter
- All Implemented Interfaces:
- GripPainter
public class DragBumpsGripPainter
- extends java.lang.Object
- implements GripPainter
Implementation of grip painter that uses drag bumps identical to those on
toolbars and split pane dividers.
- Author:
- Kirill Grouchnikov
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 |
DragBumpsGripPainter
public DragBumpsGripPainter()
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.