com.arsdigita.toolbox.rebop
Class BorderPainter
java.lang.Object
com.arsdigita.toolbox.rebop.BorderPainter
- public class BorderPainter
- extends Object
- Author:
- Gavin Doughtie
Given images representing the edges of a rectangle, BorderPainter
will paint a correctly tiled rectangle
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
versionId
public static final String versionId
- See Also:
- Constant Field Values
NORTHWEST
public static final int NORTHWEST
- See Also:
- Constant Field Values
NORTH
public static final int NORTH
- See Also:
- Constant Field Values
NORTHEAST
public static final int NORTHEAST
- See Also:
- Constant Field Values
EAST
public static final int EAST
- See Also:
- Constant Field Values
SOUTHEAST
public static final int SOUTHEAST
- See Also:
- Constant Field Values
SOUTH
public static final int SOUTH
- See Also:
- Constant Field Values
SOUTHWEST
public static final int SOUTHWEST
- See Also:
- Constant Field Values
WEST
public static final int WEST
- See Also:
- Constant Field Values
BorderPainter
public BorderPainter(Image m_borderImage,
Color m_bgColor,
ImageObserver m_obs)
getBorderWidth
public int getBorderWidth()
getBorderHeight
public int getBorderHeight()
initRects
public void initRects(int m_rectsize)
paint
public void paint(Graphics g,
Dimension mySize)
paint
public void paint(Graphics g,
Dimension mySize,
int x,
int y)
drawCorner
protected void drawCorner(Graphics g,
int currentX,
int currentY,
int rectIndex)
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC