|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.explodingpixels.widgets.plaf.ScrollThumbImagePainter
public class ScrollThumbImagePainter
An implementation of Painter that paints a scroll thumb using images.
| Method Summary | |
|---|---|
static ScrollThumbImagePainter |
createHorizontalScrollThumbImagePainter(Image disabledLowerBound,
Image disabledMiddle,
Image disabledUpperBound,
Image inactiveLowerBound,
Image inactiveMiddle,
Image inactiveUpperBound,
Image activeLowerBound,
Image activeMiddle,
Image activeUpperBound)
Creates an image-based horizontal scroll thumb painter using the given images. |
static ScrollThumbImagePainter |
createVerticalScrollThumbImagePainter(Image disabledLowerBound,
Image disabledMiddle,
Image disabledUpperBound,
Image inactiveLowerBound,
Image inactiveMiddle,
Image inactiveUpperBound,
Image activeLowerBound,
Image activeMiddle,
Image activeUpperBound)
Creates an image-based vertical scroll thumb painter using the given images. |
void |
paint(Graphics2D graphics,
Component objectToPaint,
int width,
int height)
Renders to the given Graphics2D. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ScrollThumbImagePainter createVerticalScrollThumbImagePainter(Image disabledLowerBound,
Image disabledMiddle,
Image disabledUpperBound,
Image inactiveLowerBound,
Image inactiveMiddle,
Image inactiveUpperBound,
Image activeLowerBound,
Image activeMiddle,
Image activeUpperBound)
disabledLowerBound - the lower bound disabled image.disabledMiddle - the middle disabled image.disabledUpperBound - the upper bound disabled image.inactiveLowerBound - the lower bound inactiveimageinactiveMiddle - the middle inactive imageinactiveUpperBound - the upper bound inactive image.activeLowerBound - the lower bound active image.activeMiddle - the middle active image.activeUpperBound - the upper bound active image.
public static ScrollThumbImagePainter createHorizontalScrollThumbImagePainter(Image disabledLowerBound,
Image disabledMiddle,
Image disabledUpperBound,
Image inactiveLowerBound,
Image inactiveMiddle,
Image inactiveUpperBound,
Image activeLowerBound,
Image activeMiddle,
Image activeUpperBound)
disabledLowerBound - the lower bound disabled image.disabledMiddle - the middle disabled image.disabledUpperBound - the upper bound disabled image.inactiveLowerBound - the lower bound inactiveimageinactiveMiddle - the middle inactive imageinactiveUpperBound - the upper bound inactive image.activeLowerBound - the lower bound active image.activeMiddle - the middle active image.activeUpperBound - the upper bound active image.
public void paint(Graphics2D graphics,
Component objectToPaint,
int width,
int height)
PainterGraphics2D. The supplied graphics context may be modified - it's
state need not be restored upon completion of painting.
paint in interface Painter<Component>graphics - the graphics context to paint into. It's state need not be restored. Will not
be null.objectToPaint - the object to be painted.width - the width within the object to paint.height - the height within the object to paint.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||