sun.java2d.marlin.MarlinRenderingEngine.NormalizingPathIterator Java Examples
The following examples show how to use
sun.java2d.marlin.MarlinRenderingEngine.NormalizingPathIterator.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RendererContext.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * Constructor * * @param name context name (debugging) */ RendererContext(final String name) { if (logCreateContext) { MarlinUtils.logInfo("new RendererContext = " + name); } this.name = name; // NormalizingPathIterator instances: nPCPathIterator = new NormalizingPathIterator.NearestPixelCenter(float6); nPQPathIterator = new NormalizingPathIterator.NearestPixelQuarter(float6); // MarlinRenderingEngine.TransformingPathConsumer2D transformerPC2D = new TransformingPathConsumer2D(); // Renderer: cache = new MarlinCache(this); renderer = new Renderer(this); // needs MarlinCache from rdrCtx.cache ptg = new MarlinTileGenerator(renderer); stroker = new Stroker(this); dasher = new Dasher(this); }
Example #2
Source File: RendererContext.java From Bytecoder with Apache License 2.0 | 5 votes |
/** * Constructor * * @param name context name (debugging) */ RendererContext(final String name) { if (LOG_CREATE_CONTEXT) { MarlinUtils.logInfo("new RendererContext = " + name); } this.cleanerObj = new Object(); // create first stats (needed by newOffHeapArray): if (DO_STATS || DO_MONITORS) { stats = RendererStats.createInstance(cleanerObj, name); // push cache stats: stats.cacheStats = new CacheStats[] { cleanIntCache.stats, dirtyIntCache.stats, dirtyFloatCache.stats, dirtyByteCache.stats }; } else { stats = null; } // NormalizingPathIterator instances: nPCPathIterator = new NormalizingPathIterator.NearestPixelCenter(float6); nPQPathIterator = new NormalizingPathIterator.NearestPixelQuarter(float6); // curve monotonizer & clip subdivider (before transformerPC2D init) monotonizer = new CurveBasicMonotonizer(this); curveClipSplitter = new CurveClipSplitter(this); // MarlinRenderingEngine.TransformingPathConsumer2D transformerPC2D = new TransformingPathConsumer2D(this); // Renderer: cache = new MarlinCache(this); renderer = new Renderer(this); // needs MarlinCache from rdrCtx.cache ptg = new MarlinTileGenerator(stats, renderer, cache); stroker = new Stroker(this); dasher = new Dasher(this); }
Example #3
Source File: RendererContext.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Constructor * * @param name context name (debugging) */ RendererContext(final String name) { if (LOG_CREATE_CONTEXT) { MarlinUtils.logInfo("new RendererContext = " + name); } this.cleanerObj = new Object(); // create first stats (needed by newOffHeapArray): if (DO_STATS || DO_MONITORS) { stats = RendererStats.createInstance(cleanerObj, name); // push cache stats: stats.cacheStats = new CacheStats[] { cleanIntCache.stats, dirtyIntCache.stats, dirtyFloatCache.stats, dirtyByteCache.stats }; } else { stats = null; } // NormalizingPathIterator instances: nPCPathIterator = new NormalizingPathIterator.NearestPixelCenter(float6); nPQPathIterator = new NormalizingPathIterator.NearestPixelQuarter(float6); // MarlinRenderingEngine.TransformingPathConsumer2D transformerPC2D = new TransformingPathConsumer2D(); // Renderer: cache = new MarlinCache(this); renderer = new Renderer(this); // needs MarlinCache from rdrCtx.cache ptg = new MarlinTileGenerator(renderer); stroker = new Stroker(this); dasher = new Dasher(this); }
Example #4
Source File: RendererContext.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
/** * Constructor * * @param name context name (debugging) */ RendererContext(final String name) { if (LOG_CREATE_CONTEXT) { MarlinUtils.logInfo("new RendererContext = " + name); } this.cleanerObj = new Object(); // create first stats (needed by newOffHeapArray): if (DO_STATS || DO_MONITORS) { stats = RendererStats.createInstance(cleanerObj, name); // push cache stats: stats.cacheStats = new CacheStats[] { cleanIntCache.stats, dirtyIntCache.stats, dirtyFloatCache.stats, dirtyByteCache.stats }; } else { stats = null; } // NormalizingPathIterator instances: nPCPathIterator = new NormalizingPathIterator.NearestPixelCenter(float6); nPQPathIterator = new NormalizingPathIterator.NearestPixelQuarter(float6); // curve monotonizer & clip subdivider (before transformerPC2D init) monotonizer = new CurveBasicMonotonizer(this); curveClipSplitter = new CurveClipSplitter(this); // MarlinRenderingEngine.TransformingPathConsumer2D transformerPC2D = new TransformingPathConsumer2D(this); // Renderer: cache = new MarlinCache(this); renderer = new Renderer(this); // needs MarlinCache from rdrCtx.cache ptg = new MarlinTileGenerator(stats, renderer, cache); stroker = new Stroker(this); dasher = new Dasher(this); }