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


Java AffineTransform类代码示例

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


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

示例1: getOutlineShapes

import jogamp.graph.geom.plane.AffineTransform; //导入依赖的package包/类
public static List<OutlineShape> getOutlineShapes(TypecastFont font, CharSequence string, float pixelSize,
        AffineTransform transform, Factory<? extends Vertex> vertexFactory) {
    Path2D[] paths = new Path2D[string.length()];
    getPaths(font, string, pixelSize, transform, paths);

    ArrayList<OutlineShape> shapes = new ArrayList<OutlineShape>();
    final int numGlyps = paths.length;
    for (int index = 0; index < numGlyps; index++) {
        if (paths[index] == null) {
            continue;
        }
        OutlineShape shape = new OutlineShape(vertexFactory);
        shapes.add(shape);
        PathIterator iterator = paths[index].iterator(transform);
        if (null != iterator) {
            while (!iterator.isDone()) {
                float[] coords = new float[6];
                int segmentType = iterator.currentSegment(coords);
                addPathVertexToOutline(shape, vertexFactory, coords, segmentType);
                iterator.next();
            }
        }
    }
    return shapes;
}
 
开发者ID:NLeSC,项目名称:Neon,代码行数:26,代码来源:TypecastRenderer.java

示例2: addShapeToRegion

import jogamp.graph.geom.plane.AffineTransform; //导入依赖的package包/类
public final AABBox addShapeToRegion(final float pixelSize, final Region region, final AffineTransform tLeft) {
    box.reset();
    this.region = region;
    this.tLeft = tLeft;
    TextRegionUtil.processString(shapeVisitor, null, font, pixelSize, text, tempT1, tempT2);
    this.region = null;
    this.tLeft = null;
    return box;
}
 
开发者ID:java-opengl-labs,项目名称:jogl-samples,代码行数:10,代码来源:Label0.java

示例3: getPath

import jogamp.graph.geom.plane.AffineTransform; //导入依赖的package包/类
@Override
public Path2D getPath(float pixelSize) {
    final float size = getScale(pixelSize);

    if (this.numberSized != size) {
        this.numberSized = size;
        this.pathSized = AffineTransform.getScaleInstance(null, size, size).createTransformedShape(getPath());
    }
    return this.pathSized;
}
 
开发者ID:NLeSC,项目名称:Neon,代码行数:11,代码来源:TypecastGlyph.java

示例4: visit

import jogamp.graph.geom.plane.AffineTransform; //导入依赖的package包/类
@Override
public void visit(final OutlineShape shape, final AffineTransform t) {
    final AffineTransform t1 = t.preConcatenate(tLeft);
    region.addOutlineShape(shape, t1, rgbaColor);
    box.resize(shape.getBounds(), t1, tmpV3);
}
 
开发者ID:java-opengl-labs,项目名称:jogl-samples,代码行数:7,代码来源:Label0.java

示例5: visit

import jogamp.graph.geom.plane.AffineTransform; //导入依赖的package包/类
@Override
public void visit(final OutlineShape shape, final AffineTransform t) {
    shape.setSharpness(shapesSharpness);
    region.addOutlineShape(shape, t, rgbaColor);
    box.resize(shape.getBounds(), t, tmpV3);
}
 
开发者ID:java-opengl-labs,项目名称:jogl-samples,代码行数:7,代码来源:Label.java

示例6: getOutlineShapes

import jogamp.graph.geom.plane.AffineTransform; //导入依赖的package包/类
@Override
public List<OutlineShape> getOutlineShapes(CharSequence string, float pixelSize,
        Factory<? extends Vertex> vertexFactory) {
    AffineTransform transform = new AffineTransform(vertexFactory);
    return TypecastRenderer.getOutlineShapes(this, string, pixelSize, transform, vertexFactory);
}
 
开发者ID:NLeSC,项目名称:Neon,代码行数:7,代码来源:TypecastFont.java


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