Class InfoPage
- java.lang.Object
-
- org.eclipse.nebula.widgets.geomap.internal.geomapbrowser.AbstractPage
-
- org.eclipse.nebula.widgets.geomap.internal.geomapbrowser.InfoPage
-
- All Implemented Interfaces:
Page
,InternalGeoMapListener
public class InfoPage extends AbstractPage implements Page, InternalGeoMapListener
- Version:
- $Revision$
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
InfoPage.Spec
-
Field Summary
Fields Modifier and Type Field Description private long
controlPaintTime
private static java.util.logging.Logger
log
private GeoMapBrowser
mapBrowser
private InfoPage.Spec[]
specs
private org.eclipse.swt.widgets.Table
table
private int
tileCacheSize
private int
tileCacheUsed
private int
tilePaintCount
-
Constructor Summary
Constructors Constructor Description InfoPage(GeoMapBrowser mapBrowser)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static java.lang.String
format(double d)
protected void
initContent(PageContainer container, org.eclipse.swt.widgets.Composite composite)
void
mapPainted(int tileCount, long time)
Notifies listener that the control has been (re)paintedvoid
tileCacheUpdated(int used, int size)
Notifies listener that the tile cache has been updatedvoid
tilePainted(TileRef tileRef)
Notifies listener that a tile has been (re)paintedvoid
updateInfos()
protected void
widgetDisposed(org.eclipse.swt.events.DisposeEvent e)
-
Methods inherited from class org.eclipse.nebula.widgets.geomap.internal.geomapbrowser.AbstractPage
addActionLink, addHeaderRow, addInfoText, getComposite, getContainer, getControl
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.nebula.widgets.geomap.internal.geomapbrowser.Page
getControl
-
-
-
-
Field Detail
-
log
private static final java.util.logging.Logger log
-
mapBrowser
private final GeoMapBrowser mapBrowser
-
table
private org.eclipse.swt.widgets.Table table
-
specs
private InfoPage.Spec[] specs
-
tilePaintCount
private int tilePaintCount
-
controlPaintTime
private long controlPaintTime
-
tileCacheUsed
private int tileCacheUsed
-
tileCacheSize
private int tileCacheSize
-
-
Constructor Detail
-
InfoPage
public InfoPage(GeoMapBrowser mapBrowser)
-
-
Method Detail
-
format
private static java.lang.String format(double d)
-
updateInfos
public void updateInfos()
-
initContent
protected void initContent(PageContainer container, org.eclipse.swt.widgets.Composite composite)
- Specified by:
initContent
in classAbstractPage
-
widgetDisposed
protected void widgetDisposed(org.eclipse.swt.events.DisposeEvent e)
- Specified by:
widgetDisposed
in classAbstractPage
-
tilePainted
public void tilePainted(TileRef tileRef)
Description copied from interface:InternalGeoMapListener
Notifies listener that a tile has been (re)painted- Specified by:
tilePainted
in interfaceInternalGeoMapListener
- Parameters:
tileRef
- the reference to the painted tile
-
mapPainted
public void mapPainted(int tileCount, long time)
Description copied from interface:InternalGeoMapListener
Notifies listener that the control has been (re)painted- Specified by:
mapPainted
in interfaceInternalGeoMapListener
- Parameters:
tileCount
- the number of tiles that where paintedtime
- the time it took
-
tileCacheUpdated
public void tileCacheUpdated(int used, int size)
Description copied from interface:InternalGeoMapListener
Notifies listener that the tile cache has been updated- Specified by:
tileCacheUpdated
in interfaceInternalGeoMapListener
- Parameters:
used
- the used slots of the cachesize
- the size of the cache
-
-