|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gwtwidgets.client.ui.canvas.impl.Utils
public class Utils
Support functions for canvas
| Constructor Summary | |
|---|---|
Utils()
|
|
| Method Summary | |
|---|---|
static void |
applySize(com.google.gwt.user.client.Element e,
int width,
int height)
Applies the specified dimensions as style, element attributes and clipping on the provided element. |
static double[] |
copy(double[] array)
Clones an array of doubles |
static com.google.gwt.user.client.Element |
createImage(java.lang.String src)
Creates an image element and assigns the specified source |
static int |
getHeight(com.google.gwt.user.client.Element e)
Return the height in pixels of an element |
static int |
getWidth(com.google.gwt.user.client.Element e)
Return the width in pixels of an element |
static int |
readInt(java.lang.String value)
Converts a radix 26 representation of a string to an integer |
static java.lang.String[] |
split(java.lang.String text,
java.lang.String delimiter)
Faster version of String.split(String) suitable for large strings. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Utils()
| Method Detail |
|---|
public static int getWidth(com.google.gwt.user.client.Element e)
e -
public static int getHeight(com.google.gwt.user.client.Element e)
e -
public static java.lang.String[] split(java.lang.String text,
java.lang.String delimiter)
String.split(String) suitable for large strings.
text - delimiter -
public static int readInt(java.lang.String value)
value -
public static void applySize(com.google.gwt.user.client.Element e,
int width,
int height)
e - width - height - public static double[] copy(double[] array)
array -
public static com.google.gwt.user.client.Element createImage(java.lang.String src)
src -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||