List of usage examples for com.google.gwt.core.client JsArrayNumber push
public final native void push(double value) ;
From source file:ar.com.macsgroup.graphics.gwtraphael.client.charts.pie.PieChart.java
License:Open Source License
public void drawInside(Widget widget, Integer[] values, LegendPosition legendPosition, String[] legends, String[] colors) {//from w w w.j a v a 2s . c om /** * Converting numbers */ JsArrayNumber valuesJs = (JsArrayNumber) JavaScriptObject.createArray(); for (int value : values) { valuesJs.push(value); } /** * Converting legends */ JsArrayString legendsJs = (JsArrayString) JavaScriptObject.createArray(); for (String value : legends) { legendsJs.push(value); } /** * Converting colors */ JsArrayString colorJs = (JsArrayString) JavaScriptObject.createArray(); if (colors != null) { for (String value : colors) { colorJs.push(value); } } draw(widget.getElement(), this.width, this.height, this.font, this.title, valuesJs, legendPosition.getRaphaelString(), legendsJs, colorJs); }
From source file:com.ait.ext4j.client.core.Component.java
License:Apache License
/** * Aligns this element with another element relative to the specified anchor * points. If the other element is the document it aligns it to the * viewport.//from w w w.j ava2s. c o m * * @param element */ public Component alignTo(String element, String position, double[] offsets) { JsArrayNumber numbers = JsArray.createArray().cast(); for (double d : offsets) { numbers.push(d); } return _alignTo(element, position, numbers); }
From source file:com.ait.ext4j.client.core.Component.java
License:Apache License
/** * Aligns this element with another element relative to the specified anchor * points. If the other element is the document it aligns it to the * viewport./*ww w .j a v a 2 s. c o m*/ * * @param element */ public Component alignTo(String element, String position, double[] offsets, boolean animate) { JsArrayNumber numbers = JsArray.createArray().cast(); for (double d : offsets) { numbers.push(d); } return _alignTo(element, position, numbers, animate); }
From source file:com.ait.ext4j.client.core.Component.java
License:Apache License
/** * Aligns this element with another element relative to the specified anchor * points. If the other element is the document it aligns it to the * viewport./*from www. jav a2 s .c o m*/ * * @param element */ public Component alignTo(ExtElement element, String position, double[] offsets) { JsArrayNumber numbers = JsArray.createArray().cast(); for (double d : offsets) { numbers.push(d); } return _alignTo(element, position, numbers); }
From source file:com.ait.ext4j.client.core.Component.java
License:Apache License
/** * Aligns this element with another element relative to the specified anchor * points. If the other element is the document it aligns it to the * viewport.//from ww w . j a v a 2 s. c om * * @param element */ public Component alignTo(ExtElement element, String position, double[] offsets, boolean animate) { JsArrayNumber numbers = JsArray.createArray().cast(); for (double d : offsets) { numbers.push(d); } return _alignTo(element, position, numbers, animate); }
From source file:com.ait.ext4j.client.core.Component.java
License:Apache License
public Component alignTo(ExtElement element, String position, double offsetX, double offsetY) { JsArrayNumber numbers = JsArray.createArray().cast(); numbers.push(offsetX); numbers.push(offsetY);//from w w w . j a v a 2s. c om return _alignTo(element, position, numbers); }
From source file:com.ait.ext4j.client.core.Component.java
License:Apache License
/** * Aligns this element with another element relative to the specified anchor * points. If the other element is the document it aligns it to the * viewport.// w ww . j av a 2 s. c o m * * @param element */ public Component anchorTo(String element, String position, double[] offsets) { JsArrayNumber numbers = JsArray.createArray().cast(); for (double d : offsets) { numbers.push(d); } return _anchorTo(element, position, numbers); }
From source file:com.ait.ext4j.client.core.Component.java
License:Apache License
/** * Aligns this element with another element relative to the specified anchor * points. If the other element is the document it aligns it to the * viewport./*from w w w . ja v a2 s . c om*/ * * @param element */ public Component anchorTo(String element, String position, double[] offsets, boolean animate) { JsArrayNumber numbers = JsArray.createArray().cast(); for (double d : offsets) { numbers.push(d); } return _anchorTo(element, position, numbers, animate); }
From source file:com.ait.ext4j.client.core.Component.java
License:Apache License
/** * Aligns this element with another element relative to the specified anchor * points. If the other element is the document it aligns it to the * viewport./*from w w w. j av a 2 s. c om*/ * * @param element */ public Component anchorTo(ExtElement element, String position, double[] offsets) { JsArrayNumber numbers = JsArray.createArray().cast(); for (double d : offsets) { numbers.push(d); } return _anchorTo(element, position, numbers); }
From source file:com.ait.ext4j.client.core.Component.java
License:Apache License
public Component anchorTo(ExtElement element, String position, double offsetX, double offsetY) { JsArrayNumber numbers = JsArray.createArray().cast(); numbers.push(offsetX); numbers.push(offsetY);/* w w w . j a v a 2s . co m*/ return _anchorTo(element, position, numbers); }