public class Circle extends Style
counter, JS_GLOBAL, objectIds| Constructor and Description |
|---|
Circle(Fill fill,
Number radius,
boolean snapToPixel,
Stroke stroke)
Creates a new instance.
|
Circle(Fill fill,
Number radius,
Stroke stroke)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Circle |
fill(Fill fill)
Sets the fill for the style.
|
String |
getJsType()
Returns a String with the type of Javascript object that this object represents.
|
Number |
getRadius()
Returns the radius of the circle.
|
Circle |
image(Image image)
Sets the image for this style.
|
boolean |
isSnapToPixel()
Returns the snap to pixel value.
|
Circle |
radius(Number radius)
Sets the radius of the circle.
|
String |
renderAttributesJs() |
String |
renderJs()
Returns a String with containing the rendered Javascript code for this object.
|
void |
setRadius(Number radius)
Sets the radius of the circle.
|
void |
setSnapToPixel(boolean snapToPixel)
Sets the snap to pixel value.
|
Circle |
snapToPixel(boolean snapToPixel)
Sets the snap to pixel value.
|
Circle |
stroke(Stroke stroke)
Sets the stroke for this style.
|
Circle |
text(Text text)
Sets the text for this style.
|
Style |
zIndex(Number zIndex)
Sets the z-index for this style.
|
getFill, getImage, getStroke, getText, getzIndex, setFill, setImage, setStroke, setText, setzIndexescapeQuoteJs, getJsId, getJsIdWithSuffixpublic Circle(Fill fill, Number radius, Stroke stroke)
fill - The fill for the circleradius - The radius of the circlestroke - The stroke for the circlepublic Circle fill(Fill fill)
Stylepublic Circle image(Image image)
Stylepublic Circle stroke(Stroke stroke)
Stylepublic Circle text(Text text)
Stylepublic Style zIndex(Number zIndex)
Stylepublic Number getRadius()
public void setRadius(Number radius)
radius - New valuepublic Circle radius(Number radius)
radius - New valuepublic boolean isSnapToPixel()
public void setSnapToPixel(boolean snapToPixel)
snapToPixel - New valuepublic Circle snapToPixel(boolean snapToPixel)
snapToPixel - New valuepublic String getJsType()
JavascriptObjectgetJsType in interface IJavascriptObjectgetJsType in class Stylepublic String renderAttributesJs()
renderAttributesJs in class Stylepublic String renderJs()
JavascriptObjectrenderJs in interface IJavascriptObjectrenderJs in class StyleCopyright © 2015. All rights reserved.