本文整理汇总了Java中org.jzy3d.plot3d.primitives.AbstractDrawable类的典型用法代码示例。如果您正苦于以下问题:Java AbstractDrawable类的具体用法?Java AbstractDrawable怎么用?Java AbstractDrawable使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AbstractDrawable类属于org.jzy3d.plot3d.primitives包,在下文中一共展示了AbstractDrawable类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: updateShape
import org.jzy3d.plot3d.primitives.AbstractDrawable; //导入依赖的package包/类
private void updateShape()
{
List<AbstractDrawable> polygons = shape.getDrawables();
for (AbstractDrawable d : polygons)
{
if (d instanceof Polygon)
{
Polygon p = (Polygon) d;
for (int i = 0; i < p.size(); i++)
{
Point vertex = p.get(i);
Coord3d c = vertex.xyz;
java.awt.Point gridCoordinates = pointToGridCoordinates
.get(vertex);
int gx = gridCoordinates.x;
int gy = gridCoordinates.y;
float coordinates[] = getCubeCoordinatesForGridPoint(gx, gy);
// System.out.println("At "+gridCoordinates+" have "+Arrays.toString(coordinates));
c.x = coordinates[0];
c.y = coordinates[1];
c.z = coordinates[2];
}
}
}
}
示例2: chart
import org.jzy3d.plot3d.primitives.AbstractDrawable; //导入依赖的package包/类
public static Chart chart(AbstractDrawable drawable, Type type, Quality quality) {
return chart(drawable, type, "awt", false, new Rectangle(1000, 1000), quality);
}
示例3: chartBlack
import org.jzy3d.plot3d.primitives.AbstractDrawable; //导入依赖的package包/类
public static Chart chartBlack(AbstractDrawable drawable, Type type) {
return chart(drawable, type, "awt", true, new Rectangle(1000, 1000), DEFAULT_QUALITY);
}
示例4: offscreen
import org.jzy3d.plot3d.primitives.AbstractDrawable; //导入依赖的package包/类
public static Chart offscreen(AbstractDrawable drawable, Type type) {
return chart(drawable, type, "offscreen,"+1000+"," + 1000, false, null, DEFAULT_QUALITY);
}
示例5: screenshot
import org.jzy3d.plot3d.primitives.AbstractDrawable; //导入依赖的package包/类
public static Chart screenshot(AbstractDrawable drawable, Type type, int width, int height, File output) throws IOException {
Chart chart = chart(drawable, type, "offscreen,"+width+"," + height, false, null, DEFAULT_QUALITY);
screenshot(chart, output);
return chart;
}