Class NoOpImageStaticSource
java.lang.Object
io.jmix.mapsflowui.kit.component.model.MapObservableObject
io.jmix.mapsflowui.kit.component.model.source.Source
io.jmix.mapsflowui.kit.component.model.source.ImageSource
io.jmix.mapsflowui.kit.component.model.source.AbstractImageStaticSource
io.jmix.mapsflowui.kit.component.model.source.NoOpImageStaticSource
- All Implemented Interfaces:
AbstractImageStaticSource.HasImageExtent
,AbstractImageStaticSource.HasImageStaticSourceOptions
,AbstractImageStaticSource.HasResource
,HasCrossOrigin
,HasUrl
,Source.HasAttributions
,Source.HasProjection
,Serializable
public class NoOpImageStaticSource
extends AbstractImageStaticSource
implements AbstractImageStaticSource.HasImageStaticSourceOptions, Source.HasAttributions, Source.HasProjection
INTERNAL.
Stub implementation, do not use in application. Used by Jmix Studio for showing preview.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.mapsflowui.kit.component.model.source.AbstractImageStaticSource
AbstractImageStaticSource.HasImageExtent, AbstractImageStaticSource.HasImageStaticSourceOptions, AbstractImageStaticSource.HasResource
Nested classes/interfaces inherited from class io.jmix.mapsflowui.kit.component.model.source.Source
Source.HasAttributions, Source.HasAttributionsCollapsible, Source.HasProjection, Source.HasSourceOptions, Source.HasWrapX
Nested classes/interfaces inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObject
MapObservableObject.ObjectChangeEvent
-
Field Summary
Fields inherited from class io.jmix.mapsflowui.kit.component.model.source.AbstractImageStaticSource
crossOrigin, imageExtent, resource, url
Fields inherited from class io.jmix.mapsflowui.kit.component.model.source.Source
attributions, attributionsCollapsible, id, projection, wrapX
Fields inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObject
children, dirty, eventBus, listener, metaProperties, parent, removedChildren, syncId
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.server.StreamResource
protected String
getType()
getUrl()
void
setAttributions
(List<String> attributions) void
setCrossOrigin
(String crossOrigin) void
setImageExtent
(Extent imageExtent) void
setProjection
(CRS projection) void
setResource
(com.vaadin.flow.server.StreamResource resource) Sets stream resource.void
Methods inherited from class io.jmix.mapsflowui.kit.component.model.source.Source
getAttributionsCollapsible, getId, getWrapX, setAttributionsCollapsible, setId, setWrapX
Methods inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObject
addChild, addListener, clearRemovedChildren, clearRemovedChildrenInDepth, equals, fireChangeEvent, getChildren, getEventBus, getMetaProperties, getRemovedChildren, getSyncId, hashCode, isDirty, isDirtyInDepth, markAsDirty, markAsDirtyInDepth, removeChild, setMapObjectChangeListener, setMetaProperty, setParent, unmarkDirtyInDepth
-
Constructor Details
-
NoOpImageStaticSource
public NoOpImageStaticSource()
-
-
Method Details
-
getType
- Specified by:
getType
in classMapObservableObject
-
getAttributions
Description copied from class:Source
- Specified by:
getAttributions
in interfaceSource.HasAttributions
- Overrides:
getAttributions
in classSource
- Returns:
- the attributions of the source or
null
if not set
-
setAttributions
Description copied from class:Source
- Specified by:
setAttributions
in interfaceSource.HasAttributions
- Overrides:
setAttributions
in classSource
- Parameters:
attributions
- info about copyrights and licences
-
getProjection
Description copied from class:Source
- Specified by:
getProjection
in interfaceSource.HasProjection
- Overrides:
getProjection
in classSource
- Returns:
- projection or
null
if not set
-
setProjection
Description copied from class:Source
- Specified by:
setProjection
in interfaceSource.HasProjection
- Overrides:
setProjection
in classSource
- Parameters:
projection
- projection to set
-
getCrossOrigin
Description copied from class:AbstractImageStaticSource
- Specified by:
getCrossOrigin
in interfaceHasCrossOrigin
- Overrides:
getCrossOrigin
in classAbstractImageStaticSource
- Returns:
- cross-origin or
null
if not set
-
setCrossOrigin
Description copied from class:AbstractImageStaticSource
- Specified by:
setCrossOrigin
in interfaceHasCrossOrigin
- Overrides:
setCrossOrigin
in classAbstractImageStaticSource
- Parameters:
crossOrigin
- cross-origin to set
-
getImageExtent
Description copied from class:AbstractImageStaticSource
- Specified by:
getImageExtent
in interfaceAbstractImageStaticSource.HasImageExtent
- Overrides:
getImageExtent
in classAbstractImageStaticSource
- Returns:
- extent of the image in map coordinates or
null
if not set.
-
setImageExtent
Description copied from class:AbstractImageStaticSource
- Specified by:
setImageExtent
in interfaceAbstractImageStaticSource.HasImageExtent
- Overrides:
setImageExtent
in classAbstractImageStaticSource
- Parameters:
imageExtent
- image extent to set
-
getUrl
Description copied from class:AbstractImageStaticSource
- Specified by:
getUrl
in interfaceHasUrl
- Overrides:
getUrl
in classAbstractImageStaticSource
- Returns:
- URL or
null
if not set
-
setUrl
Description copied from class:AbstractImageStaticSource
- Specified by:
setUrl
in interfaceHasUrl
- Overrides:
setUrl
in classAbstractImageStaticSource
- Parameters:
url
- url to set
-
getResource
public com.vaadin.flow.server.StreamResource getResource()- Specified by:
getResource
in interfaceAbstractImageStaticSource.HasResource
- Overrides:
getResource
in classAbstractImageStaticSource
- Returns:
- stream resource or
null
if not set
-
setResource
public void setResource(com.vaadin.flow.server.StreamResource resource) Description copied from interface:AbstractImageStaticSource.HasResource
Sets stream resource.- Specified by:
setResource
in interfaceAbstractImageStaticSource.HasResource
- Overrides:
setResource
in classAbstractImageStaticSource
- Parameters:
resource
- stream resource to set
-