summaryrefslogtreecommitdiff
path: root/NET/worlds/scape/FloatArrayEditorDialog.java
diff options
context:
space:
mode:
Diffstat (limited to 'NET/worlds/scape/FloatArrayEditorDialog.java')
-rw-r--r--NET/worlds/scape/FloatArrayEditorDialog.java70
1 files changed, 70 insertions, 0 deletions
diff --git a/NET/worlds/scape/FloatArrayEditorDialog.java b/NET/worlds/scape/FloatArrayEditorDialog.java
new file mode 100644
index 0000000..b20313f
--- /dev/null
+++ b/NET/worlds/scape/FloatArrayEditorDialog.java
@@ -0,0 +1,70 @@
+/* */ package NET.worlds.scape;
+/* */
+/* */ import java.util.StringTokenizer;
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */ class FloatArrayEditorDialog
+/* */ extends ListEditorDialog
+/* */ {
+/* */ private static final long serialVersionUID = 1L;
+/* */ protected Property property;
+/* */ protected float[] arr;
+/* */
+/* */ FloatArrayEditorDialog(EditTile parent, String title, Property property)
+/* */ {
+/* 28 */ super(parent, title);
+/* 29 */ this.property = property;
+/* 30 */ ready();
+/* */ }
+/* */
+/* */ protected void build()
+/* */ {
+/* 35 */ this.arr = ((float[])this.property.get());
+/* 36 */ super.build();
+/* */ }
+/* */
+/* */ protected int getElementCount()
+/* */ {
+/* 41 */ return this.arr.length;
+/* */ }
+/* */
+/* */ protected String getElement(int index)
+/* */ {
+/* 46 */ return this.arr[index];
+/* */ }
+/* */
+/* */ protected boolean setElements(StringTokenizer e)
+/* */ {
+/* 51 */ int count = 0;
+/* 52 */ while (e.hasMoreTokens())
+/* */ try {
+/* 54 */ this.arr[(count++)] = Float.valueOf(e.nextToken()).floatValue();
+/* */ } catch (Exception x) {
+/* 56 */ return false;
+/* */ }
+/* 58 */ if (count == this.arr.length) {
+/* 59 */ this.parent.addUndoableSet(this.property, this.arr);
+/* 60 */ return true;
+/* */ }
+/* 62 */ return false;
+/* */ }
+/* */ }
+
+
+/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\FloatArrayEditorDialog.class
+ * Java compiler version: 6 (50.0)
+ * JD-Core Version: 0.7.1
+ */ \ No newline at end of file