net.xoetrope.optional.laf.synth
Class ImagePainter
java.lang.Object
net.xoetrope.optional.laf.synth.ImagePainter
public class ImagePainter
- extends java.lang.Object
Paints an image in sections, distinguishing the corners and edges and
center so that the eges can be stretched.
A variation on the Synth ImagePainter class but as the Syth class is not public
we cannot derive from it so this class duplicates some of its methods.
Copyright: Copyright (c) Xoetrope Ltd., 2004-2005
License: see license.txt
$Revision: 1.4 $
- See Also:
ImagePainter
|
Constructor Summary |
ImagePainter(javax.swing.plaf.synth.SynthContext c,
java.awt.Graphics g,
int ax,
int ay,
int aw,
int ah,
java.lang.String imagePath,
java.awt.Insets srcInsets,
java.awt.Insets dstInsets,
boolean bTiles,
boolean bCenter)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImagePainter
public ImagePainter(javax.swing.plaf.synth.SynthContext c,
java.awt.Graphics g,
int ax,
int ay,
int aw,
int ah,
java.lang.String imagePath,
java.awt.Insets srcInsets,
java.awt.Insets dstInsets,
boolean bTiles,
boolean bCenter)
getImage
public java.awt.Image getImage(java.lang.String imagePath)
paint
public void paint()
drawTopLeft
public void drawTopLeft()
drawTopCenter
public void drawTopCenter()
drawTopRight
public void drawTopRight()
drawRight
public void drawRight()
drawBottomRight
public void drawBottomRight()
drawBottomCenter
public void drawBottomCenter()
drawBottomLeft
public void drawBottomLeft()
drawLeft
public void drawLeft()
drawCenter
public void drawCenter()