|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sikuli.api.visual.element.Element
public class Element
Element is an abstraction for objects to be displayed on the screen.
| Nested Class Summary | |
|---|---|
static class |
Element.HorizontalAlignment
The horizontal alignment of the Element. |
static interface |
Element.Listener
|
static class |
Element.VerticalAlignment
The vertical alignment of the Element. |
| Field Summary | |
|---|---|
int |
height
|
Element.HorizontalAlignment |
horizontalAlignment
|
Element.VerticalAlignment |
verticalAlignment
|
int |
width
|
int |
x
|
int |
y
|
| Constructor Summary | |
|---|---|
Element()
|
|
| Method Summary | |
|---|---|
void |
addListener(Element.Listener l)
|
edu.umd.cs.piccolo.PNode |
createPNode()
Creates a new PNode, the central abstraction in Piccolo. |
Color |
getBackgroundColor()
Returns the background color of this Element. |
Color |
getColor()
Returns the Color of this Element. |
float |
getFontSize()
Returns the font size of this Element in points. |
Color |
getLineColor()
Returns the line color of this Element. |
int |
getLineWidth()
Returns the line width of this Element in points. |
float |
getTransparency()
Returns the transparency (alpha component) value of this Element. |
void |
removeListener(Element.Listener l)
|
void |
setBackgroundColor(Color backgroundColor)
Sets the background color of this Element. |
void |
setColor(Color color)
Sets the color of this Element |
void |
setFontSize(float fontSize)
Sets the font size of this Elements in points. |
void |
setLineColor(Color lineColor)
Sets the line color of this Element. |
void |
setLineWidth(int lineWidth)
Sets the line width of this Element in points. |
void |
setLocation(int x,
int y)
|
void |
setTransparency(float transparency)
Sets the transparency (alpha component) value of this Element. |
ElementStyleSetter |
styleWith()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int x
public int y
public int width
public int height
public Element.VerticalAlignment verticalAlignment
public Element.HorizontalAlignment horizontalAlignment
| Constructor Detail |
|---|
public Element()
| Method Detail |
|---|
public edu.umd.cs.piccolo.PNode createPNode()
PNodepublic Color getColor()
public void setColor(Color color)
color - public Color getLineColor()
public void setLineColor(Color lineColor)
lineColor - the specified the line color.public Color getBackgroundColor()
public void setBackgroundColor(Color backgroundColor)
public int getLineWidth()
public void setLineWidth(int lineWidth)
lineWidth - the specified line width in points.public float getFontSize()
public void setFontSize(float fontSize)
fontSize - the font size in points.public float getTransparency()
public void setTransparency(float transparency)
transparency - the specified transparency value [0..1].
public void setLocation(int x,
int y)
public void addListener(Element.Listener l)
public void removeListener(Element.Listener l)
public ElementStyleSetter styleWith()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||