|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sikuli.api.visual.StyleBuilder
public class StyleBuilder
A StyleBuilder is used to to ease style building the Canvas.
| Constructor Summary | |
|---|---|
StyleBuilder(Canvas canvas,
Element element)
Constructs a new StyleBuilder whose Canvas and Element specified with the arguments of the same name. |
|
| Method Summary | |
|---|---|
void |
display(double seconds)
Displays the canvas for the specified duration. |
void |
display(int seconds)
Displays the canvas for the specified duration. |
StyleBuilder |
withBackgroundColor(Color color)
Sets the background color of this canvas element. |
StyleBuilder |
withColor(Color color)
Sets the foreground color of this canvas element. |
StyleBuilder |
withFontSize(int size)
Sets the font size color of this canvas element. |
StyleBuilder |
withHorizontalAlignmentCenter()
Sets the horizontal alignment of this canvas element at the center. |
StyleBuilder |
withHorizontalAlignmentLeft()
Sets the horizontal alignment of this canvas element on the left. |
StyleBuilder |
withHorizontalAlignmentRight()
Sets the horizontal alignment of this canvas element on the right. |
StyleBuilder |
withLineColor(Color color)
Sets the line color of this canvas element. |
StyleBuilder |
withLineWidth(int width)
Sets the line width of this canvas element. |
StyleBuilder |
withTransparency(float f)
Sets the transparency (alpha component) value of this canvas element. |
StyleBuilder |
withVerticalAlignmentBottom()
Sets the vertical alignment of this canvas element at the bottom. |
StyleBuilder |
withVerticalAlignmentMiddle()
Sets the vertical alignment of this canvas element in the middle. |
StyleBuilder |
withVerticalAlignmentTop()
Sets the vertical alignment of this canvas element at the top. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StyleBuilder(Canvas canvas,
Element element)
canvas - the specified Canvas.element - the specified Element.| Method Detail |
|---|
public StyleBuilder withLineColor(Color color)
color - the specified color.
public StyleBuilder withColor(Color color)
color - the specified color.
public StyleBuilder withBackgroundColor(Color color)
color - the specified color.
public StyleBuilder withTransparency(float f)
f - the specified transparency value [0..1].
public StyleBuilder withFontSize(int size)
size - the specified font size in points.
public StyleBuilder withLineWidth(int width)
width - the specified line width in points.
public StyleBuilder withVerticalAlignmentMiddle()
public StyleBuilder withVerticalAlignmentTop()
public StyleBuilder withVerticalAlignmentBottom()
public StyleBuilder withHorizontalAlignmentLeft()
public StyleBuilder withHorizontalAlignmentCenter()
public StyleBuilder withHorizontalAlignmentRight()
public void display(int seconds)
seconds - the specified duration in seconds.public void display(double seconds)
seconds - the specified duration in seconds.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||