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


Java AbstractDrawable类代码示例

本文整理汇总了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];
            }
        }
    }
}
 
开发者ID:igd-iva,项目名称:colormap-explorer,代码行数:28,代码来源:ColormapShape.java

示例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);
}
 
开发者ID:jzy3d,项目名称:bigpicture,代码行数:4,代码来源:BigPicture.java

示例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);
}
 
开发者ID:jzy3d,项目名称:bigpicture,代码行数:4,代码来源:BigPicture.java

示例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);
}
 
开发者ID:jzy3d,项目名称:bigpicture,代码行数:4,代码来源:BigPicture.java

示例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;
}
 
开发者ID:jzy3d,项目名称:bigpicture,代码行数:6,代码来源:BigPicture.java


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