Package com.metsci.glimpse.dnc
Class DncPainterSync
- java.lang.Object
-
- com.metsci.glimpse.dnc.DncPainter
-
- com.metsci.glimpse.dnc.DncPainterSync
-
- All Implemented Interfaces:
GlimpsePainter
public class DncPainterSync extends DncPainter
ADncPainter
whose paint method blocks until relevant background tasks have finished. Intended for non-interactive use (e.g. painting to an offscreen image).WARNING: this implementation is quite kludgy. A better impl will require changes to RenderCache and DncPainter.
TODO: Re-implement less kludgily
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DncPainterSync.RenderCacheSync
-
Field Summary
-
Fields inherited from class com.metsci.glimpse.dnc.DncPainter
chunkPriorityFunc
-
-
Constructor Summary
Constructors Constructor Description DncPainterSync(DncPainterSync.RenderCacheSync cacheSync, DncPainterSettings settings)
DncPainterSync(DncPainterSync.RenderCacheSync cacheSync, DncPainterSettings settings, DncGeosymTheme theme)
-
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.dnc.DncPainter
activateCoverage, activateCoverages, activateCoverages, activeChunkKeys, addActiveChunksListener, addAxis, deactivateCoverage, deactivateCoverages, dispose, highlightFeatures, isChunkActive, isDisposed, isVisible, removeActiveChunksListener, removeAxis, setCoverageActive, setCoveragesActive, setLookAndFeel, setTheme, setVisible
-
-
-
-
Constructor Detail
-
DncPainterSync
public DncPainterSync(DncPainterSync.RenderCacheSync cacheSync, DncPainterSettings settings)
-
DncPainterSync
public DncPainterSync(DncPainterSync.RenderCacheSync cacheSync, DncPainterSettings settings, DncGeosymTheme theme)
-
-
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 classDncPainter
-
-