Package org.apache.pivot.wtk.effects
Class TagDecorator
- java.lang.Object
-
- org.apache.pivot.wtk.effects.TagDecorator
-
-
Constructor Summary
Constructors Constructor Description TagDecorator()
TagDecorator(Visual tag)
TagDecorator(Visual tag, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, int xOffset, int yOffset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Bounds
getBounds(Component component)
Returns the bounding area of the decorator.HorizontalAlignment
getHorizontalAlignment()
Visual
getTag()
VerticalAlignment
getVerticalAlignment()
int
getXOffset()
int
getYOffset()
java.awt.Graphics2D
prepare(Component component, java.awt.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
-
Methods inherited from interface org.apache.pivot.wtk.effects.Decorator
getTransform
-
-
-
-
Constructor Detail
-
TagDecorator
public TagDecorator()
-
TagDecorator
public TagDecorator(Visual tag)
-
TagDecorator
public TagDecorator(Visual tag, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, int xOffset, int yOffset)
-
-
Method Detail
-
getTag
public Visual getTag()
-
setTag
public void setTag(Visual tag)
-
getHorizontalAlignment
public HorizontalAlignment getHorizontalAlignment()
-
setHorizontalAlignment
public void setHorizontalAlignment(HorizontalAlignment horizontalAlignment)
-
getVerticalAlignment
public VerticalAlignment getVerticalAlignment()
-
setVerticalAlignment
public void setVerticalAlignment(VerticalAlignment verticalAlignment)
-
getXOffset
public int getXOffset()
-
setXOffset
public void setXOffset(int xOffset)
-
getYOffset
public int getYOffset()
-
setYOffset
public void setYOffset(int yOffset)
-
prepare
public java.awt.Graphics2D prepare(Component component, java.awt.Graphics2D graphicsArgument)
Description copied from interface:Decorator
Prepares the graphics context into which the component or prior decorator will paint. This method is called immediately prior toComponent.paint(Graphics2D)
; decorators are called in descending order.
-
update
public void update()
Description copied from interface:Decorator
Updates the graphics context into which the component or prior decorator was painted. This method is called immediately afterComponent.paint(Graphics2D)
; decorators are called in ascending order.This default version simply returns, without doing anything (often the appropriate thing to do).
-
-