public class PictureFillSymbol extends FillSymbol
Modifier and Type | Method and Description |
---|---|
static PictureFillSymbol |
create(com.google.gwt.core.client.JavaScriptObject json)
Creates a new PictureFillSymbol object using a JSON object.
|
static PictureFillSymbol |
create(java.lang.String url,
SimpleLineSymbol outline,
int width,
int height)
Creates a new PictureFillSymbol object.
|
int |
getHeight()
Height of the image in pixels.
|
java.lang.String |
getUrl()
URL of the image.
|
int |
getWidth()
Width of the image in pixels.
|
int |
getXOffset()
The offset on the x-axis in pixels.
|
int |
getXScale()
Scale factor in x direction.
|
int |
getYOffset()
The offset on the y-axis in pixels.
|
int |
getYScale()
Scale factor in y direction.
|
PictureFillSymbol |
setHeight(int height)
Sets the height of the symbol.
|
PictureFillSymbol |
setOffset(int x,
int y)
Sets the symbol offset.
|
PictureFillSymbol |
setUrl(java.lang.String url)
Sets the URL to the location of the symbol.
|
PictureFillSymbol |
setWidth(int width)
Sets the width of the symbol.
|
PictureFillSymbol |
setXScale(int scale)
Sets the scale factor in x direction.
|
PictureFillSymbol |
setYScale(int scale)
Sets the scale factor in y direction.
|
getOutline, setOutline
fromJson, getColor, getType, setColor, toJson
public static PictureFillSymbol create(com.google.gwt.core.client.JavaScriptObject json)
json
- - JSON object representing the PictureFillSymbol.public static PictureFillSymbol create(java.lang.String url, SimpleLineSymbol outline, int width, int height)
url
- - URL of the image.outline
- - Outline of the symbol.width
- - Width of the image in pixels.height
- - Height of the image in pixels.public final int getHeight()
public final java.lang.String getUrl()
public final int getWidth()
public final int getXOffset()
public final int getXScale()
public final int getYOffset()
public final int getYScale()
public final PictureFillSymbol setHeight(int height)
height
- - Height in pixels.public final PictureFillSymbol setOffset(int x, int y)
x
- - Offset in x direction in pixels.y
- - Offset in y direction in pixels.public final PictureFillSymbol setUrl(java.lang.String url)
url
- - URL string.public final PictureFillSymbol setWidth(int width)
width
- - Width in pixels.public final PictureFillSymbol setXScale(int scale)
scale
- - Scale factor in x direction.public final PictureFillSymbol setYScale(int scale)
scale
- - Scale factor in y direction.