public class Style extends JavascriptObject implements Serializable
counter, JS_GLOBAL, objectIds
Constructor and Description |
---|
Style()
Creates a new instance.
|
Style(Fill fill)
Creates a new instance.
|
Style(Fill fill,
Image image,
Stroke stroke,
Text text,
Number zIndex)
Creates a new instance.
|
Style(Image image)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
Style |
fill(Fill fill)
Sets the fill for the style.
|
Fill |
getFill()
Returns the fill for the style.
|
Image |
getImage()
Returns the image for this style.
|
String |
getJsType()
Returns a String with the type of Javascript object that this object represents.
|
Stroke |
getStroke()
Returns the stroke for this style.
|
Text |
getText()
Returns the text for this style.
|
Number |
getzIndex()
Returns the current z-index for this style.
|
Style |
image(Image image)
Sets the image for this style.
|
String |
renderAttributesJs() |
String |
renderJs()
Returns a String with containing the rendered Javascript code for this object.
|
void |
setFill(Fill fill)
Sets the fill for the style.
|
void |
setImage(Image image)
Sets the image for this style.
|
void |
setStroke(Stroke stroke)
Sets the stroke for this style
|
void |
setText(Text text)
Sets the text for this instance.
|
void |
setzIndex(Number zIndex)
Sets the z-index for this style.
|
Style |
stroke(Stroke stroke)
Sets the stroke for this style.
|
Style |
text(Text text)
Sets the text for this style.
|
Style |
zIndex(Number zIndex)
Sets the z-index for this style.
|
escapeQuoteJs, getJsId, getJsIdWithSuffix
public Style()
public Style(Image image)
image
- The image for the stylepublic Style(Fill fill)
fill
- The fill for the style.public Fill getFill()
public void setFill(Fill fill)
fill
- New valuepublic Style fill(Fill fill)
fill
- New valuepublic Image getImage()
public void setImage(Image image)
image
- New valuepublic Style image(Image image)
image
- New valuepublic Stroke getStroke()
public void setStroke(Stroke stroke)
stroke
- New valuepublic Style stroke(Stroke stroke)
stroke
- New valuepublic Text getText()
public void setText(Text text)
text
- New valuepublic Style text(Text text)
text
- New valuepublic Number getzIndex()
public void setzIndex(Number zIndex)
zIndex
- New valuepublic Style zIndex(Number zIndex)
zIndex
- New valuepublic String getJsType()
JavascriptObject
getJsType
in interface IJavascriptObject
getJsType
in class JavascriptObject
public String renderAttributesJs()
public String renderJs()
JavascriptObject
renderJs
in interface IJavascriptObject
renderJs
in class JavascriptObject
Copyright © 2015. All rights reserved.