List of usage examples for com.google.gwt.widgetideas.graphics.client Color toString
public String toString()
From source file:com.google.appinventor.client.editor.simple.components.MockMapFeatureBase.java
License:Open Source License
protected void setStrokeColorProperty(String text) { if (MockComponentsUtil.isDefaultColor(text)) { text = "&HFF000000"; }//from w w w. j a v a 2 s.c o m Color color = MockComponentsUtil.getColor(text); strokeColor = color.toString(); setStrokeColor(strokeColor); }
From source file:com.google.appinventor.client.editor.simple.components.MockMapFeatureBaseWithFill.java
License:Open Source License
protected void setFillColorProperty(String text) { if (MockComponentsUtil.isDefaultColor(text)) { text = "&HFFFF0000"; // red }/*w w w . j av a 2 s . c o m*/ Color color = MockComponentsUtil.getColor(text); fillColor = color.toString(); setFillColor(fillColor); }