|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.pivot.wtk.effects.TagDecorator
public class TagDecorator
Decorator that allows a caller to attach a "tag" visual to a component.
| Constructor Summary | |
|---|---|
TagDecorator()
|
|
TagDecorator(Visual tag)
|
|
TagDecorator(Visual tag,
HorizontalAlignment horizontalAlignment,
VerticalAlignment verticalAlignment,
int xOffset,
int yOffset)
|
|
| Method Summary | |
|---|---|
Bounds |
getBounds(Component component)
Returns the bounding area of the decorator. |
HorizontalAlignment |
getHorizontalAlignment()
|
Visual |
getTag()
|
AffineTransform |
getTransform(Component component)
Returns the transformation the decorator applies to the component's coordinate space. |
VerticalAlignment |
getVerticalAlignment()
|
int |
getXOffset()
|
int |
getYOffset()
|
Graphics2D |
prepare(Component component,
Graphics2D graphicsArgument)
Prepares the graphics context into which the component or prior decorator will paint. |
void |
setHorizontalAlignment(HorizontalAlignment horizontalAlignment)
|
void |
setTag(Visual tag)
|
void |
setVerticalAlignment(VerticalAlignment verticalAlignment)
|
void |
setXOffset(int xOffset)
|
void |
setYOffset(int yOffset)
|
void |
update()
Updates the graphics context into which the component or prior decorator was painted. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TagDecorator()
public TagDecorator(Visual tag)
public TagDecorator(Visual tag,
HorizontalAlignment horizontalAlignment,
VerticalAlignment verticalAlignment,
int xOffset,
int yOffset)
| Method Detail |
|---|
public Visual getTag()
public void setTag(Visual tag)
public HorizontalAlignment getHorizontalAlignment()
public void setHorizontalAlignment(HorizontalAlignment horizontalAlignment)
public VerticalAlignment getVerticalAlignment()
public void setVerticalAlignment(VerticalAlignment verticalAlignment)
public int getXOffset()
public void setXOffset(int xOffset)
public int getYOffset()
public void setYOffset(int yOffset)
public Graphics2D prepare(Component component,
Graphics2D graphicsArgument)
DecoratorComponent.paint(Graphics2D); decorators are called in
descending order.
prepare in interface Decoratorpublic void update()
DecoratorComponent.paint(Graphics2D); decorators are called in
ascending order.
update in interface Decoratorpublic Bounds getBounds(Component component)
Decorator
getBounds in interface Decoratorpublic AffineTransform getTransform(Component component)
Decorator
getTransform in interface Decorator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||