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, setzIndex
escapeQuoteJs, getJsId, getJsIdWithSuffix
public 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)
Style
public Circle image(Image image)
Style
public Circle stroke(Stroke stroke)
Style
public Circle text(Text text)
Style
public Style zIndex(Number zIndex)
Style
public 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()
JavascriptObject
getJsType
in interface IJavascriptObject
getJsType
in class Style
public String renderAttributesJs()
renderAttributesJs
in class Style
public String renderJs()
JavascriptObject
renderJs
in interface IJavascriptObject
renderJs
in class Style
Copyright © 2015. All rights reserved.