com.arsdigita.toolbox.rebop
Class AbstractDrawable
java.lang.Object
com.arsdigita.toolbox.rebop.AbstractDrawable
- All Implemented Interfaces:
- GenericDrawable
- Direct Known Subclasses:
- BevelBox, StyledText
- public abstract class AbstractDrawable
- extends Object
- implements GenericDrawable
Partial implementation of the GenericDrawable interface so
derived classes don't have to implement the Offset methods.
- Author:
- Gavin Doughtie
Method Summary |
int |
getXOffset()
|
int |
getYOffset()
|
void |
setXOffset(int xOffset)
The X and Y offsets are used to offset a drawable from the location
where it is told to draw. |
void |
setYOffset(int yOffset)
|
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
AbstractDrawable
public AbstractDrawable()
setXOffset
public void setXOffset(int xOffset)
- Description copied from interface:
GenericDrawable
- The X and Y offsets are used to offset a drawable from the location
where it is told to draw. Offsets are typically used for drawables
that are inside components that form the contents of a push-down
button.
- Specified by:
setXOffset
in interface GenericDrawable
- Parameters:
xOffset
- number of horizontal pixels to offset this
drawable before drawing it.
getXOffset
public int getXOffset()
- Specified by:
getXOffset
in interface GenericDrawable
getYOffset
public int getYOffset()
- Specified by:
getYOffset
in interface GenericDrawable
setYOffset
public void setYOffset(int yOffset)
- Specified by:
setYOffset
in interface GenericDrawable
- Parameters:
yOffset
- number of vertical pixels to offset this- See Also:
GenericDrawable.setXOffset(int)
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC