blob: 4aa71aa2b0b27a8d145ea4fb89010a6334f41eb8 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_201) on Thu Jul 23 15:58:27 CEST 2020 -->
<title>GeoMap</title>
<meta name="date" content="2020-07-23">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="GeoMap";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/GeoMap.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev&nbsp;Class</li>
<li><a href="../../../../../org/eclipse/nebula/widgets/geomap/GeoMapListener.html" title="interface in org.eclipse.nebula.widgets.geomap"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/eclipse/nebula/widgets/geomap/GeoMap.html" target="_top">Frames</a></li>
<li><a href="GeoMap.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.eclipse.nebula.widgets.geomap</div>
<h2 title="Class GeoMap" class="title">Class GeoMap</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>org.eclipse.swt.widgets.Widget</li>
<li>
<ul class="inheritance">
<li>org.eclipse.swt.widgets.Control</li>
<li>
<ul class="inheritance">
<li>org.eclipse.swt.widgets.Scrollable</li>
<li>
<ul class="inheritance">
<li>org.eclipse.swt.widgets.Composite</li>
<li>
<ul class="inheritance">
<li>org.eclipse.swt.widgets.Canvas</li>
<li>
<ul class="inheritance">
<li><a href="../../../../../org/eclipse/nebula/widgets/geomap/internal/InternalGeoMap.html" title="class in org.eclipse.nebula.widgets.geomap.internal">org.eclipse.nebula.widgets.geomap.internal.InternalGeoMap</a></li>
<li>
<ul class="inheritance">
<li>org.eclipse.nebula.widgets.geomap.GeoMap</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../../../../../org/eclipse/nebula/widgets/geomap/internal/GeoMapHelperListener.html" title="interface in org.eclipse.nebula.widgets.geomap.internal">GeoMapHelperListener</a>, <a href="../../../../../org/eclipse/nebula/widgets/geomap/internal/GeoMapPositioned.html" title="interface in org.eclipse.nebula.widgets.geomap.internal">GeoMapPositioned</a>, org.eclipse.swt.graphics.Drawable</dd>
</dl>
<hr>
<br>
<pre>public class <span class="typeNameLabel">GeoMap</span>
extends <a href="../../../../../org/eclipse/nebula/widgets/geomap/internal/InternalGeoMap.html" title="class in org.eclipse.nebula.widgets.geomap.internal">InternalGeoMap</a></pre>
<div class="block">GeoMap display tiles from openstreetmap as is. This simple minimal viewer
supports zoom around mouse-click center and has a simple api. A number of
tiles are cached. If you use this it will create traffic on the tileserver
you are using. Please be conscious about this.
This class is a JPanel which can be integrated into any swing app just by
creating an instance and adding like a JLabel.
The map has the size <code>256*1<<zoomlevel</code>. This measure is referred
to as map-coordinates. Geometric locations like longitude and latitude can be
obtained by helper methods. Note that a point in map-coordinates corresponds
to a given geometric position but also depending on the current zoom level.
You can zoomIn around current mouse position by left double click. Left right
click zooms out.
<p>
Methods of interest are
<ul>
<li><a href="../../../../../org/eclipse/nebula/widgets/geomap/GeoMap.html#setZoom-int-"><code>setZoom(int)</code></a> which sets the map's zoom level. Values between 1
and 18 are allowed.</li>
<li><a href="../../../../../org/eclipse/nebula/widgets/geomap/GeoMap.html#setMapPosition-org.eclipse.swt.graphics.Point-"><code>setMapPosition(Point)</code></a> which sets the map's top left corner. (In
map coordinates)</li>
<li><a href="../../../../../org/eclipse/nebula/widgets/geomap/GeoMap.html#setCenterPosition-org.eclipse.swt.graphics.Point-"><code>setCenterPosition(Point)</code></a> which sets the map's center position.
(In map coordinates)</li> for the given longitude and latitude. If you want
to center the map around this geometric location you need to pass the result
to the method</li>
</ul>
</p>
<p>
For performance tuning the two crucial parameters are the size of the tile
cache and the number of image-loader threads.
</p>
</p>
<p>
License is EPL (Eclipse Public License)
https://www.eclipse.org/legal/epl-2.0/. Contact at stepan.rutz@gmx.de
</p></div>
<dl>
<dt><span class="simpleTagLabel">Version:</span></dt>
<dd>$Revision$</dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/geomap/GeoMap.html#ABOUT_MSG">ABOUT_MSG</a></span></code>
<div class="block">About message.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.org.eclipse.nebula.widgets.geomap.internal.InternalGeoMap">
<!-- -->
</a>
<h3>Fields inherited from class&nbsp;org.eclipse.nebula.widgets.geomap.internal.<a href="../../../../../org/eclipse/nebula/widgets/geomap/internal/InternalGeoMap.html" title="class in org.eclipse.nebula.widgets.geomap.internal">InternalGeoMap</a></h3>
<code><a href="../../../../../org/eclipse/nebula/widgets/geomap/internal/InternalGeoMap.html#geoMapHelper">geoMapHelper</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.org.eclipse.swt.widgets.Control">
<!-- -->
</a>
<h3>Fields inherited from class&nbsp;org.eclipse.swt.widgets.Control</h3>
<code>handle</code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/geomap/GeoMap.html#GeoMap-org.eclipse.swt.widgets.Composite-int-">GeoMap</a></span>(org.eclipse.swt.widgets.Composite&nbsp;parent,
int&nbsp;style)</code>
<div class="block">Creates a new <code>GeoMap</code> using the default size for its internal
cache of tiles.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/geomap/GeoMap.html#GeoMap-org.eclipse.swt.widgets.Composite-int-org.eclipse.swt.graphics.Point-int-">GeoMap</a></span>(org.eclipse.swt.widgets.Composite&nbsp;parent,
int&nbsp;style,
org.eclipse.swt.graphics.Point&nbsp;mapPosition,
int&nbsp;zoom)</code>
<div class="block">Creates a new <code>GeoMap</code> using the default size for its internal
cache of tiles</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/geomap/GeoMap.html#GeoMap-org.eclipse.swt.widgets.Composite-int-org.eclipse.swt.graphics.Point-int-int-">GeoMap</a></span>(org.eclipse.swt.widgets.Composite&nbsp;parent,
int&nbsp;style,
org.eclipse.swt.graphics.Point&nbsp;mapPosition,
int&nbsp;zoom,
int&nbsp;cacheSize)</code>
<div class="block">Creates a new <code>GeoMap</code> using the default size for its internal
cache of tiles</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/geomap/GeoMap.html#addGeoMapListener-org.eclipse.nebula.widgets.geomap.GeoMapListener-">addGeoMapListener</a></span>(<a href="../../../../../org/eclipse/nebula/widgets/geomap/GeoMapListener.html" title="interface in org.eclipse.nebula.widgets.geomap">GeoMapListener</a>&nbsp;listener)</code>
<div class="block">Adds a GeoMapListener, that will be notified of changes to the position and
zoom level</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/geomap/GeoMap.html#addMouseHandler-java.util.EventListener-">addMouseHandler</a></span>(java.util.EventListener&nbsp;listener)</code>
<div class="block">Adds listener to appropriate listener lists depending on the listener
interfaces that are implemented.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>org.eclipse.swt.graphics.Point</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/geomap/GeoMap.html#computeSize-int-int-">computeSize</a></span>(int&nbsp;wHint,
int&nbsp;hHint)</code>&nbsp;</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>org.eclipse.swt.graphics.Point</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/geomap/GeoMap.html#computeSize-int-int-boolean-">computeSize</a></span>(int&nbsp;wHint,
int&nbsp;hHint,
boolean&nbsp;changed)</code>&nbsp;</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>org.eclipse.swt.graphics.Point</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/geomap/GeoMap.html#getCenterPosition--">getCenterPosition</a></span>()</code>
<div class="block">Returns the position of the center of this GeoMap.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>org.eclipse.swt.graphics.Point</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/geomap/GeoMap.html#getCursorPosition--">getCursorPosition</a></span>()</code>
<div class="block">Returns the map position of the mouse cursor.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/eclipse/nebula/widgets/geomap/internal/DefaultMouseHandler.html" title="class in org.eclipse.nebula.widgets.geomap.internal">DefaultMouseHandler</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/geomap/GeoMap.html#getDefaultMouseHandler--">getDefaultMouseHandler</a></span>()</code>
<div class="block">Returns the default mouse handler, so it may be configured or removed.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/eclipse/nebula/widgets/geomap/TileServer.html" title="class in org.eclipse.nebula.widgets.geomap">TileServer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/geomap/GeoMap.html#getTileServer--">getTileServer</a></span>()</code>
<div class="block">Returns the current TileServer of this GeoMap.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/geomap/GeoMap.html#removeGeoMapListener-org.eclipse.nebula.widgets.geomap.GeoMapListener-">removeGeoMapListener</a></span>(<a href="../../../../../org/eclipse/nebula/widgets/geomap/GeoMapListener.html" title="interface in org.eclipse.nebula.widgets.geomap">GeoMapListener</a>&nbsp;listener)</code>
<div class="block">Removes a GeoMapListener, so it no longer will be notified of changes to the
position and zoom level</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/geomap/GeoMap.html#removeMouseHandler-java.util.EventListener-">removeMouseHandler</a></span>(java.util.EventListener&nbsp;listener)</code>
<div class="block">Removes listener from appropriate listener lists depending on the listener
interfaces that are implemented.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/geomap/GeoMap.html#setCenterPosition-org.eclipse.swt.graphics.Point-">setCenterPosition</a></span>(org.eclipse.swt.graphics.Point&nbsp;mapPosition)</code>
<div class="block">Sets the position of the center of this GeoMap, without any panning effect.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/geomap/GeoMap.html#setMapPosition-int-int-">setMapPosition</a></span>(int&nbsp;x,
int&nbsp;y)</code>
<div class="block">Sets the position of the upper left corner of this GeoMap, without any
panning effect.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/geomap/GeoMap.html#setMapPosition-org.eclipse.swt.graphics.Point-">setMapPosition</a></span>(org.eclipse.swt.graphics.Point&nbsp;mapPosition)</code>
<div class="block">Sets the position of the upper left corner of this GeoMap, without any
panning effect.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/geomap/GeoMap.html#setTileServer-org.eclipse.nebula.widgets.geomap.TileServer-">setTileServer</a></span>(<a href="../../../../../org/eclipse/nebula/widgets/geomap/TileServer.html" title="class in org.eclipse.nebula.widgets.geomap">TileServer</a>&nbsp;tileServer)</code>
<div class="block">Sets the current TileServer of this GeoMap.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/geomap/GeoMap.html#setZoom-int-">setZoom</a></span>(int&nbsp;zoom)</code>
<div class="block">Sets the zoom level, without any transition effect.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/geomap/GeoMap.html#translateMapPosition-int-int-">translateMapPosition</a></span>(int&nbsp;tx,
int&nbsp;ty)</code>
<div class="block">Translates the position of the upper left corner of this GeoMap, without any
panning effect.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/geomap/GeoMap.html#zoomIn-org.eclipse.swt.graphics.Point-">zoomIn</a></span>(org.eclipse.swt.graphics.Point&nbsp;pivot)</code>
<div class="block">Zooms in, while ensuring that the pivot point remains at the same screen
location.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/geomap/GeoMap.html#zoomOut-org.eclipse.swt.graphics.Point-">zoomOut</a></span>(org.eclipse.swt.graphics.Point&nbsp;pivot)</code>
<div class="block">Zooms out, while ensuring that the pivot point remains at the same screen
location.</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/nebula/widgets/geomap/GeoMap.html#zoomTo-org.eclipse.swt.graphics.Rectangle-">zoomTo</a></span>(org.eclipse.swt.graphics.Rectangle&nbsp;rect)</code>
<div class="block">Zooms into and centers on the specified rectangle.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.eclipse.nebula.widgets.geomap.internal.InternalGeoMap">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.eclipse.nebula.widgets.geomap.internal.<a href="../../../../../org/eclipse/nebula/widgets/geomap/internal/InternalGeoMap.html" title="class in org.eclipse.nebula.widgets.geomap.internal">InternalGeoMap</a></h3>
<code><a href="../../../../../org/eclipse/nebula/widgets/geomap/internal/InternalGeoMap.html#addInternalGeoMapListener-org.eclipse.nebula.widgets.geomap.internal.InternalGeoMapListener-">addInternalGeoMapListener</a>, <a href="../../../../../org/eclipse/nebula/widgets/geomap/internal/InternalGeoMap.html#getMapPosition--">getMapPosition</a>, <a href="../../../../../org/eclipse/nebula/widgets/geomap/internal/InternalGeoMap.html#getMaxZoom--">getMaxZoom</a>, <a href="../../../../../org/eclipse/nebula/widgets/geomap/internal/InternalGeoMap.html#getZoom--">getZoom</a>, <a href="../../../../../org/eclipse/nebula/widgets/geomap/internal/InternalGeoMap.html#removeInternalGeoMapListener-org.eclipse.nebula.widgets.geomap.internal.InternalGeoMapListener-">removeInternalGeoMapListener</a>, <a href="../../../../../org/eclipse/nebula/widgets/geomap/internal/InternalGeoMap.html#tileUpdated-org.eclipse.nebula.widgets.geomap.internal.TileRef-">tileUpdated</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.eclipse.swt.widgets.Canvas">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.eclipse.swt.widgets.Canvas</h3>
<code>drawBackground, getCaret, getIME, scroll, setCaret, setFont, setIME</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.eclipse.swt.widgets.Composite">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.eclipse.swt.widgets.Composite</h3>
<code>changed, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.eclipse.swt.widgets.Scrollable">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.eclipse.swt.widgets.Scrollable</h3>
<code>computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.eclipse.swt.widgets.Control">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.eclipse.swt.widgets.Control</h3>
<code>addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.eclipse.swt.widgets.Widget">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.eclipse.swt.widgets.Widget</h3>
<code>addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.eclipse.swt.graphics.Drawable">
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;org.eclipse.swt.graphics.Drawable</h3>
<code>isAutoScalable</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="ABOUT_MSG">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>ABOUT_MSG</h4>
<pre>public static final&nbsp;java.lang.String ABOUT_MSG</pre>
<div class="block">About message.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#org.eclipse.nebula.widgets.geomap.GeoMap.ABOUT_MSG">Constant Field Values</a></dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="GeoMap-org.eclipse.swt.widgets.Composite-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GeoMap</h4>
<pre>public&nbsp;GeoMap(org.eclipse.swt.widgets.Composite&nbsp;parent,
int&nbsp;style)</pre>
<div class="block">Creates a new <code>GeoMap</code> using the default size for its internal
cache of tiles. The map is showing the position <code>(275091, 180145</code>
at zoom level <code>11</code>. In other words this constructor is best used
only in debugging scenarios.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>parent</code> - SWT parent <code>Composite</code></dd>
<dd><code>style</code> - SWT style as in <code>Canvas</code>, since this class inherits
from it. Double buffering is always enabed.</dd>
</dl>
</li>
</ul>
<a name="GeoMap-org.eclipse.swt.widgets.Composite-int-org.eclipse.swt.graphics.Point-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GeoMap</h4>
<pre>public&nbsp;GeoMap(org.eclipse.swt.widgets.Composite&nbsp;parent,
int&nbsp;style,
org.eclipse.swt.graphics.Point&nbsp;mapPosition,
int&nbsp;zoom)</pre>
<div class="block">Creates a new <code>GeoMap</code> using the default size for its internal
cache of tiles</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>parent</code> - SWT parent <code>Composite</code></dd>
<dd><code>style</code> - SWT style as in <code>Canvas</code>, since this class inherits
from it. Double buffering is always enabed.</dd>
<dd><code>mapPosition</code> - initial mapPosition.</dd>
<dd><code>zoom</code> - initial map zoom</dd>
</dl>
</li>
</ul>
<a name="GeoMap-org.eclipse.swt.widgets.Composite-int-org.eclipse.swt.graphics.Point-int-int-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>GeoMap</h4>
<pre>public&nbsp;GeoMap(org.eclipse.swt.widgets.Composite&nbsp;parent,
int&nbsp;style,
org.eclipse.swt.graphics.Point&nbsp;mapPosition,
int&nbsp;zoom,
int&nbsp;cacheSize)</pre>
<div class="block">Creates a new <code>GeoMap</code> using the default size for its internal
cache of tiles</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>parent</code> - SWT parent <code>Composite</code></dd>
<dd><code>style</code> - SWT style as in <code>Canvas</code>, since this class inherits
from it. Double buffering is always enabed.</dd>
<dd><code>mapPosition</code> - initial mapPosition.</dd>
<dd><code>zoom</code> - initial map zoom</dd>
<dd><code>cacheSize</code> - initial cache size, eg number of tile-images that are kept in
cache to prevent reloading from the network.</dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getDefaultMouseHandler--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDefaultMouseHandler</h4>
<pre>public&nbsp;<a href="../../../../../org/eclipse/nebula/widgets/geomap/internal/DefaultMouseHandler.html" title="class in org.eclipse.nebula.widgets.geomap.internal">DefaultMouseHandler</a>&nbsp;getDefaultMouseHandler()</pre>
<div class="block">Returns the default mouse handler, so it may be configured or removed.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the default mouse handler</dd>
</dl>
</li>
</ul>
<a name="addMouseHandler-java.util.EventListener-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addMouseHandler</h4>
<pre>public&nbsp;void&nbsp;addMouseHandler(java.util.EventListener&nbsp;listener)</pre>
<div class="block">Adds listener to appropriate listener lists depending on the listener
interfaces that are implemented.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>listener</code> - the listener</dd>
</dl>
</li>
</ul>
<a name="removeMouseHandler-java.util.EventListener-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeMouseHandler</h4>
<pre>public&nbsp;void&nbsp;removeMouseHandler(java.util.EventListener&nbsp;listener)</pre>
<div class="block">Removes listener from appropriate listener lists depending on the listener
interfaces that are implemented.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>listener</code> - the listener</dd>
</dl>
</li>
</ul>
<a name="getTileServer--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTileServer</h4>
<pre>public&nbsp;<a href="../../../../../org/eclipse/nebula/widgets/geomap/TileServer.html" title="class in org.eclipse.nebula.widgets.geomap">TileServer</a>&nbsp;getTileServer()</pre>
<div class="block">Returns the current TileServer of this GeoMap.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the current TileServer</dd>
</dl>
</li>
</ul>
<a name="setTileServer-org.eclipse.nebula.widgets.geomap.TileServer-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTileServer</h4>
<pre>public&nbsp;void&nbsp;setTileServer(<a href="../../../../../org/eclipse/nebula/widgets/geomap/TileServer.html" title="class in org.eclipse.nebula.widgets.geomap">TileServer</a>&nbsp;tileServer)</pre>
<div class="block">Sets the current TileServer of this GeoMap. Note that this will clear the map
and reload the tiles using the new TileServer.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>tileServer</code> - the TileServer</dd>
</dl>
</li>
</ul>
<a name="addGeoMapListener-org.eclipse.nebula.widgets.geomap.GeoMapListener-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addGeoMapListener</h4>
<pre>public&nbsp;void&nbsp;addGeoMapListener(<a href="../../../../../org/eclipse/nebula/widgets/geomap/GeoMapListener.html" title="interface in org.eclipse.nebula.widgets.geomap">GeoMapListener</a>&nbsp;listener)</pre>
<div class="block">Adds a GeoMapListener, that will be notified of changes to the position and
zoom level</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>listener</code> - the GeoMapListener</dd>
</dl>
</li>
</ul>
<a name="removeGeoMapListener-org.eclipse.nebula.widgets.geomap.GeoMapListener-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeGeoMapListener</h4>
<pre>public&nbsp;void&nbsp;removeGeoMapListener(<a href="../../../../../org/eclipse/nebula/widgets/geomap/GeoMapListener.html" title="interface in org.eclipse.nebula.widgets.geomap">GeoMapListener</a>&nbsp;listener)</pre>
<div class="block">Removes a GeoMapListener, so it no longer will be notified of changes to the
position and zoom level</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>listener</code> - the GeoMapListener</dd>
</dl>
</li>
</ul>
<a name="setMapPosition-org.eclipse.swt.graphics.Point-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMapPosition</h4>
<pre>public&nbsp;void&nbsp;setMapPosition(org.eclipse.swt.graphics.Point&nbsp;mapPosition)</pre>
<div class="block">Sets the position of the upper left corner of this GeoMap, without any
panning effect.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>mapPosition</code> - the new position</dd>
</dl>
</li>
</ul>
<a name="setMapPosition-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMapPosition</h4>
<pre>public&nbsp;void&nbsp;setMapPosition(int&nbsp;x,
int&nbsp;y)</pre>
<div class="block">Sets the position of the upper left corner of this GeoMap, without any
panning effect.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/eclipse/nebula/widgets/geomap/internal/GeoMapPositioned.html#setMapPosition-int-int-">setMapPosition</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/eclipse/nebula/widgets/geomap/internal/GeoMapPositioned.html" title="interface in org.eclipse.nebula.widgets.geomap.internal">GeoMapPositioned</a></code></dd>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../../../../../org/eclipse/nebula/widgets/geomap/internal/InternalGeoMap.html#setMapPosition-int-int-">setMapPosition</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/eclipse/nebula/widgets/geomap/internal/InternalGeoMap.html" title="class in org.eclipse.nebula.widgets.geomap.internal">InternalGeoMap</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>x</code> - the x-coordinate of the position</dd>
<dd><code>y</code> - the y-coordinate of the position</dd>
</dl>
</li>
</ul>
<a name="translateMapPosition-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>translateMapPosition</h4>
<pre>public&nbsp;void&nbsp;translateMapPosition(int&nbsp;tx,
int&nbsp;ty)</pre>
<div class="block">Translates the position of the upper left corner of this GeoMap, without any
panning effect.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>tx</code> - the relative distance in x-direction</dd>
<dd><code>ty</code> - the relative distance in y-direction</dd>
</dl>
</li>
</ul>
<a name="setZoom-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setZoom</h4>
<pre>public&nbsp;void&nbsp;setZoom(int&nbsp;zoom)</pre>
<div class="block">Sets the zoom level, without any transition effect.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/eclipse/nebula/widgets/geomap/internal/GeoMapPositioned.html#setZoom-int-">setZoom</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/eclipse/nebula/widgets/geomap/internal/GeoMapPositioned.html" title="interface in org.eclipse.nebula.widgets.geomap.internal">GeoMapPositioned</a></code></dd>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../../../../../org/eclipse/nebula/widgets/geomap/internal/InternalGeoMap.html#setZoom-int-">setZoom</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/eclipse/nebula/widgets/geomap/internal/InternalGeoMap.html" title="class in org.eclipse.nebula.widgets.geomap.internal">InternalGeoMap</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>zoom</code> - the new zoom level</dd>
</dl>
</li>
</ul>
<a name="zoomIn-org.eclipse.swt.graphics.Point-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>zoomIn</h4>
<pre>public&nbsp;void&nbsp;zoomIn(org.eclipse.swt.graphics.Point&nbsp;pivot)</pre>
<div class="block">Zooms in, while ensuring that the pivot point remains at the same screen
location.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>pivot</code> - the point that will remain at the same screen location.</dd>
</dl>
</li>
</ul>
<a name="zoomOut-org.eclipse.swt.graphics.Point-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>zoomOut</h4>
<pre>public&nbsp;void&nbsp;zoomOut(org.eclipse.swt.graphics.Point&nbsp;pivot)</pre>
<div class="block">Zooms out, while ensuring that the pivot point remains at the same screen
location.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>pivot</code> - the point that will remain at the same screen location.</dd>
</dl>
</li>
</ul>
<a name="zoomTo-org.eclipse.swt.graphics.Rectangle-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>zoomTo</h4>
<pre>public&nbsp;void&nbsp;zoomTo(org.eclipse.swt.graphics.Rectangle&nbsp;rect)</pre>
<div class="block">Zooms into and centers on the specified rectangle.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>rect</code> - the rectangle</dd>
</dl>
</li>
</ul>
<a name="getCenterPosition--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCenterPosition</h4>
<pre>public&nbsp;org.eclipse.swt.graphics.Point&nbsp;getCenterPosition()</pre>
<div class="block">Returns the position of the center of this GeoMap. The coordinates depend on
the zoom level.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the position of the center of this GeoMap</dd>
</dl>
</li>
</ul>
<a name="setCenterPosition-org.eclipse.swt.graphics.Point-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setCenterPosition</h4>
<pre>public&nbsp;void&nbsp;setCenterPosition(org.eclipse.swt.graphics.Point&nbsp;mapPosition)</pre>
<div class="block">Sets the position of the center of this GeoMap, without any panning effect.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>mapPosition</code> - the new position</dd>
</dl>
</li>
</ul>
<a name="getCursorPosition--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCursorPosition</h4>
<pre>public&nbsp;org.eclipse.swt.graphics.Point&nbsp;getCursorPosition()</pre>
<div class="block">Returns the map position of the mouse cursor.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the map position of the mouse cursor</dd>
</dl>
</li>
</ul>
<a name="computeSize-int-int-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>computeSize</h4>
<pre>public&nbsp;org.eclipse.swt.graphics.Point&nbsp;computeSize(int&nbsp;wHint,
int&nbsp;hHint,
boolean&nbsp;changed)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>computeSize</code>&nbsp;in class&nbsp;<code>org.eclipse.swt.widgets.Control</code></dd>
</dl>
</li>
</ul>
<a name="computeSize-int-int-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>computeSize</h4>
<pre>public&nbsp;org.eclipse.swt.graphics.Point&nbsp;computeSize(int&nbsp;wHint,
int&nbsp;hHint)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>computeSize</code>&nbsp;in class&nbsp;<code>org.eclipse.swt.widgets.Control</code></dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/GeoMap.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev&nbsp;Class</li>
<li><a href="../../../../../org/eclipse/nebula/widgets/geomap/GeoMapListener.html" title="interface in org.eclipse.nebula.widgets.geomap"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/eclipse/nebula/widgets/geomap/GeoMap.html" target="_top">Frames</a></li>
<li><a href="GeoMap.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>