public class Overlay extends Object implements IJavascriptObject, Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Overlay.Positioning
Enumeration of valid overlay positioning values.
|
Modifier and Type | Field and Description |
---|---|
static Overlay.Positioning |
DEFAULT_POSITIONING
Default positioning.
|
static Boolean |
DEFAULT_STOP_EVENT
Default stop event value.
|
protected org.apache.wicket.Component |
element
Wicket component tied to this overlay.
|
LongLat |
position
The position of the overlay in the map projection.
|
Overlay.Positioning |
positioning
Defines how the overlay is actually positioned with respect to its position property.
|
Boolean |
stopEvent
Whether event propagation to the map viewport should be stopped.
|
Constructor and Description |
---|
Overlay()
Creates a new instance.
|
Overlay(org.apache.wicket.Component component)
Creates a new instance.
|
Overlay(org.apache.wicket.Component component,
LongLat position)
Creates a new instance.
|
Overlay(org.apache.wicket.Component component,
LongLat position,
Overlay.Positioning positioning)
Creates a new instance.
|
Overlay(org.apache.wicket.Component component,
LongLat position,
Overlay.Positioning positioning,
Boolean stopEvent)
Creates a new instance.
|
Overlay(org.apache.wicket.Component component,
Overlay.Positioning positioning)
Creates a new instance.
|
Overlay(LongLat position)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
Overlay |
element(org.apache.wicket.Component element)
Sets the element linked to this overlay.
|
protected String |
escapeQuoteJs(String text)
Escapes single quotation marks in the provided String.
|
org.apache.wicket.Component |
getElement()
Returns the element linked to this overlay.
|
String |
getJsId()
Returns a String with the unique ID used to identify this object.
|
String |
getJsType()
Returns a String with the type of Javascript object that this object represents.
|
LongLat |
getPosition()
Returns the position of the overlay.
|
Overlay.Positioning |
getPositioning()
Returns the positioning of this overlay.
|
Boolean |
getStopEvent()
Returns the stop event value.
|
Overlay |
position(LongLat position)
Sets the position of the overlay.
|
Overlay |
positioning(Overlay.Positioning positioning)
Sets the positioning of this overlay.
|
protected String |
renderAttributesJs() |
String |
renderJs()
Returns a String with containing the rendered Javascript code for this object.
|
void |
setElement(org.apache.wicket.Component element)
Sets the element linked to this overlay.
|
void |
setPosition(LongLat position)
Sets the position of the overlay.
|
void |
setPositioning(Overlay.Positioning positioning)
Sets the positioning of this overlay.
|
void |
setStopEvent(Boolean stopEvent)
Sets the stop event value.
|
Overlay |
stopEvent(Boolean stopEvent)
Sets the stop event value.
|
public static final Overlay.Positioning DEFAULT_POSITIONING
public static final Boolean DEFAULT_STOP_EVENT
public LongLat position
public Overlay.Positioning positioning
public Boolean stopEvent
protected org.apache.wicket.Component element
public Overlay()
public Overlay(LongLat position)
position
- The position of the overlaypublic Overlay(org.apache.wicket.Component component)
component
- The component linked to this overlaypublic Overlay(org.apache.wicket.Component component, LongLat position)
component
- The component linked to this overlayposition
- The position of the overlaypublic Overlay(org.apache.wicket.Component component, Overlay.Positioning positioning)
component
- The component linked to this overlaypositioning
- Defines how the overlay is actually positioned with respect to its position property.public Overlay(org.apache.wicket.Component component, LongLat position, Overlay.Positioning positioning)
component
- The component linked to this overlayposition
- The position of the overlaypositioning
- Defines how the overlay is actually positioned with respect to its position property.public Overlay(org.apache.wicket.Component component, LongLat position, Overlay.Positioning positioning, Boolean stopEvent)
component
- The component linked to this overlayposition
- The position of the overlaypositioning
- Defines how the overlay is actually positioned with respect to its position property.stopEvent
- Whether event propagation to the map viewport should be stopped. Default is true. If true the overlay is
placed in the same container as that of the controls (CSS class name ol-overlaycontainer-stopevent); if
false it is placed in the container with CSS class name ol-overlaycontainer.public LongLat getPosition()
public void setPosition(LongLat position)
position
- Coordinate for the overlay's positionpublic Overlay position(LongLat position)
position
- Coordinate for the overlay's positionpublic Overlay.Positioning getPositioning()
public void setPositioning(Overlay.Positioning positioning)
positioning
- New valuepublic Overlay positioning(Overlay.Positioning positioning)
positioning
- New valuepublic org.apache.wicket.Component getElement()
public void setElement(org.apache.wicket.Component element)
element
- Wicket component linked to this overlaypublic Overlay element(org.apache.wicket.Component element)
element
- Wicket component linked to this overlaypublic Boolean getStopEvent()
public void setStopEvent(Boolean stopEvent)
stopEvent
- New valuepublic Overlay stopEvent(Boolean stopEvent)
stopEvent
- New valuepublic String getJsId()
IJavascriptObject
getJsId
in interface IJavascriptObject
public String getJsType()
IJavascriptObject
getJsType
in interface IJavascriptObject
public String renderJs()
IJavascriptObject
renderJs
in interface IJavascriptObject
protected String renderAttributesJs()
Copyright © 2015. All rights reserved.