当前位置: 首页>>代码示例>>Java>>正文


Java NormalizingPathIterator类代码示例

本文整理汇总了Java中sun.java2d.marlin.MarlinRenderingEngine.NormalizingPathIterator的典型用法代码示例。如果您正苦于以下问题:Java NormalizingPathIterator类的具体用法?Java NormalizingPathIterator怎么用?Java NormalizingPathIterator使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


NormalizingPathIterator类属于sun.java2d.marlin.MarlinRenderingEngine包,在下文中一共展示了NormalizingPathIterator类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: RendererContext

import sun.java2d.marlin.MarlinRenderingEngine.NormalizingPathIterator; //导入依赖的package包/类
/**
 * 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);
}
 
开发者ID:campolake,项目名称:openjdk9,代码行数:28,代码来源:RendererContext.java

示例2: RendererContext

import sun.java2d.marlin.MarlinRenderingEngine.NormalizingPathIterator; //导入依赖的package包/类
/**
 * Constructor
 *
 * @param name context name (debugging)
 */
RendererContext(final String name) {
    if (LOG_CREATE_CONTEXT) {
        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);
}
 
开发者ID:JetBrains,项目名称:jdk8u_jdk,代码行数:28,代码来源:RendererContext.java

示例3: RendererContext

import sun.java2d.marlin.MarlinRenderingEngine.NormalizingPathIterator; //导入依赖的package包/类
/**
 * 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(stats, renderer, cache);

    stroker = new Stroker(this);
    dasher = new Dasher(this);
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:38,代码来源:RendererContext.java


注:本文中的sun.java2d.marlin.MarlinRenderingEngine.NormalizingPathIterator类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。