|
@@ -10,13 +10,13 @@ ifdef::env-github,env-browser[:outfilesuffix: .adoc]
|
|
|
|
|
|
|
|
== The Element Class
|
|
== The Element Class
|
|
|
|
|
|
|
|
-All controls are extensions of the Element class and thus, provide common methods for handling common features. Before getting to specific controls, I thought it might be a good idea to cover some of the common methods for changing basic properties… such as: text, etc.+
|
|
|
|
|
-+
|
|
|
|
|
|
|
+All controls are extensions of the Element class and thus, provide common methods for handling common features. Before getting to specific controls, I thought it might be a good idea to cover some of the common methods for changing basic properties… such as: text, etc.
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
=== Constructors
|
|
=== Constructors
|
|
|
|
|
|
|
|
-The Element class only provides a single constructor using all 6 of the common parameters:+
|
|
|
|
|
|
|
+The Element class only provides a single constructor using all 6 of the common parameters:
|
|
|
|
|
|
|
|
[source,java]
|
|
[source,java]
|
|
|
----
|
|
----
|
|
@@ -41,9 +41,10 @@ Element el = new Element(
|
|
|
|
|
|
|
|
----
|
|
----
|
|
|
|
|
|
|
|
-*Note:*+
|
|
|
|
|
|
|
+[NOTE]
|
|
|
|
|
+====
|
|
|
All setter provide getters.
|
|
All setter provide getters.
|
|
|
-
|
|
|
|
|
|
|
+====
|
|
|
|
|
|
|
|
=== Text/Font Related Methods
|
|
=== Text/Font Related Methods
|
|
|
|
|
|
|
@@ -96,6 +97,7 @@ element.getAbsoluteHeight();
|
|
|
----
|
|
----
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
=== Child Elements
|
|
=== Child Elements
|
|
|
|
|
|
|
|
There are additional methods that provide recursive updates to child Elements:
|
|
There are additional methods that provide recursive updates to child Elements:
|
|
@@ -109,6 +111,7 @@ element.resize(float diffX, floar diffY, Element.Borders dir);
|
|
|
----
|
|
----
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
=== Element Display Methods
|
|
=== Element Display Methods
|
|
|
|
|
|
|
|
[source,java]
|
|
[source,java]
|
|
@@ -196,6 +199,7 @@ el.setGlobalAlpha(float alpha);
|
|
|
----
|
|
----
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
=== Effect Related Methods
|
|
=== Effect Related Methods
|
|
|
|
|
|
|
|
[source,java]
|
|
[source,java]
|
|
@@ -224,7 +228,7 @@ screen.getDropObject();
|
|
|
|
|
|
|
|
[NOTE]
|
|
[NOTE]
|
|
|
====
|
|
====
|
|
|
-You must manage your own list of acceptable drop objects as any Element flagged as isDropObject will be returned
|
|
|
|
|
|
|
+You must manage your own list of acceptable drop objects as any Element flagged as isDropObject will be returned.
|
|
|
====
|
|
====
|
|
|
|
|
|
|
|
|
|
|