本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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);
}
示例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);
}
示例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);
}