當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。