public class Fill extends JavascriptObject implements Serializable
counter, JS_GLOBAL, objectIds
Constructor and Description |
---|
Fill(Color color)
Creates a new instance.
|
Fill(String color)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
Fill |
color(Color color)
Sets the color for this fill.
|
Fill |
color(String color)
Creates a new instance.
|
Color |
getColor()
Returns the color for this fill.
|
String |
getJsType()
Returns a String with the type of Javascript object that this object represents.
|
String |
renderJs()
Returns a String with containing the rendered Javascript code for this object.
|
void |
setColor(Color color)
Sets the color for this fill.
|
void |
setColor(String color)
Sets the color for this fill.
|
escapeQuoteJs, getJsId, getJsIdWithSuffix
public Fill(String color)
color
- String with the hexadecimal color code for this fillpublic Fill(Color color)
color
- Color for this fillpublic Color getColor()
public void setColor(String color)
color
- String with the hexadecimal color code for this fillpublic void setColor(Color color)
color
- New valuepublic Fill color(Color color)
color
- New valuepublic Fill color(String color)
color
- String with the hexadecimal color code for this fillpublic String getJsType()
JavascriptObject
getJsType
in interface IJavascriptObject
getJsType
in class JavascriptObject
public String renderJs()
JavascriptObject
renderJs
in interface IJavascriptObject
renderJs
in class JavascriptObject
Copyright © 2015. All rights reserved.