public class GeoImage
extends java.lang.Object
ImageLayer
.
Encapsulates an image Resource
.
Constructor and Description |
---|
GeoImage(com.vaadin.server.Resource imageResource)
Creates a geo-image using the given
Resource . |
Modifier and Type | Method and Description |
---|---|
static GeoImage |
fromClasspath(java.lang.String imagePath)
Creates a geo-image using the image from classpath.
|
static GeoImage |
fromFile(java.io.File imageFile)
Creates a geo-image using the image from file system.
|
static GeoImage |
fromPath(java.lang.String path)
Creates a geo-image using the given path.
|
static GeoImage |
fromTheme(java.lang.String imagePath)
Creates a geo-image using the image from the current theme directory.
|
static GeoImage |
fromUrl(java.lang.String imageUrl)
Creates a geo-image using the image located at the given URL.
|
com.vaadin.server.Resource |
getImageResource()
Returns an image resource.
|
public GeoImage(com.vaadin.server.Resource imageResource)
Resource
.public static GeoImage fromPath(java.lang.String path)
Path should start with one of the following prefixes: "file:", "classpath:", "theme:", "url:"
,
which define the source of an image. The remaining part of the path specifies the actual location
of an image in the given source. For example: "classpath:/com/company/demo/web/image.png"
.
public static GeoImage fromFile(java.io.File imageFile)
public static GeoImage fromClasspath(java.lang.String imagePath)
For example: "/com/company/demo/web/image.png"
.
public static GeoImage fromTheme(java.lang.String imagePath)
For example: "awesomeFolder/image.png"
.
public static GeoImage fromUrl(java.lang.String imageUrl)
public com.vaadin.server.Resource getImageResource()