|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sikuli.api.visual.element.ElementStyleSetter
public class ElementStyleSetter
A StyleBuilder is used to to ease style building the Canvas.
| Constructor Summary | |
|---|---|
ElementStyleSetter(Element element)
Constructs a new StyleBuilder whose Canvas and Element specified with the arguments of the same name. |
|
| Method Summary | |
|---|---|
ElementStyleSetter |
backgroundColor(Color color)
Sets the background color of this canvas element. |
ElementStyleSetter |
color(Color color)
Sets the foreground color of this canvas element. |
ElementStyleSetter |
fontSize(float fontSize)
|
ElementStyleSetter |
horizontalAlignmentCenter()
Sets the horizontal alignment of this canvas element at the center. |
ElementStyleSetter |
horizontalAlignmentLeft()
Sets the horizontal alignment of this canvas element on the left. |
ElementStyleSetter |
horizontalAlignmentRight()
Sets the horizontal alignment of this canvas element on the right. |
ElementStyleSetter |
lineColor(Color color)
Sets the line color of this canvas element. |
ElementStyleSetter |
lineWidth(int width)
Sets the line width of this canvas element. |
ElementStyleSetter |
transparency(float f)
Sets the transparency (alpha component) value of this canvas element. |
ElementStyleSetter |
verticalAlignmentBottom()
Sets the vertical alignment of this canvas element at the bottom. |
ElementStyleSetter |
verticalAlignmentMiddle()
Sets the vertical alignment of this canvas element in the middle. |
ElementStyleSetter |
verticalAlignmentTop()
Sets the vertical alignment of this canvas element at the top. |
ElementStyleSetter |
withFontSize(int size)
Sets the font size color of this canvas element. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ElementStyleSetter(Element element)
canvas - the specified Canvas.element - the specified Element.| Method Detail |
|---|
public ElementStyleSetter lineColor(Color color)
color - the specified color.
public ElementStyleSetter color(Color color)
color - the specified color.
public ElementStyleSetter fontSize(float fontSize)
public ElementStyleSetter backgroundColor(Color color)
color - the specified color.
public ElementStyleSetter transparency(float f)
f - the specified transparency value [0..1].
public ElementStyleSetter withFontSize(int size)
size - the specified font size in points.
public ElementStyleSetter lineWidth(int width)
width - the specified line width in points.
public ElementStyleSetter verticalAlignmentMiddle()
public ElementStyleSetter verticalAlignmentTop()
public ElementStyleSetter verticalAlignmentBottom()
public ElementStyleSetter horizontalAlignmentLeft()
public ElementStyleSetter horizontalAlignmentCenter()
public ElementStyleSetter horizontalAlignmentRight()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||