Class TilePainter<V>
- java.lang.Object
-
- com.metsci.glimpse.core.painter.group.DelegatePainter
-
- com.metsci.glimpse.core.painter.geo.TilePainter<V>
-
- All Implemented Interfaces:
GlimpsePainter
- Direct Known Subclasses:
ShadedReliefTiledPainter
,ShorelineTilePainter
public abstract class TilePainter<V> extends DelegatePainter
Paints a geo with tiled data. The subclass must implement the actual painting of the tiles themselves. This class takes care of identifying the visible tiles (and tiles that are appropriate to paint in the current projection) and providing those to the subclass to paint.- Author:
- borkholder
-
-
Constructor Summary
Constructors Constructor Description TilePainter(GeoProjection projection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
paintTo(GlimpseContext context)
Renders this GlimpsePainter to the provided GlimpseContext.-
Methods inherited from class com.metsci.glimpse.core.painter.group.DelegatePainter
addPainter, addPainter, dispose, getNumPainters, indexOf, isDisposed, isVisible, removeAll, removePainter, setLookAndFeel, setVisible
-
-
-
-
Constructor Detail
-
TilePainter
public TilePainter(GeoProjection projection)
-
-
Method Detail
-
paintTo
public void paintTo(GlimpseContext context)
Description copied from interface:GlimpsePainter
Renders this GlimpsePainter to the provided GlimpseContext. The context defines the GLContext to use. The GlimpseContext also specifies where this GlimpsePainter should be rendered via the RenderTarget contained in the GlimpseContext.- Specified by:
paintTo
in interfaceGlimpsePainter
- Overrides:
paintTo
in classDelegatePainter
-
-