本文整理匯總了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);
}