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


Java PlotState类代码示例

本文整理汇总了Java中org.jfree.chart.plot.PlotState的典型用法代码示例。如果您正苦于以下问题:Java PlotState类的具体用法?Java PlotState怎么用?Java PlotState使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


PlotState类属于org.jfree.chart.plot包,在下文中一共展示了PlotState类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: draw

import org.jfree.chart.plot.PlotState; //导入依赖的package包/类
public void draw( Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info ) {
    if ( !backgroundIsBuffered ) {
        super.draw( g2, area, anchor, parentState, info );
    }
    else if ( renderData ) {
        drawDataOnly( g2, area, anchor, info );
    }
}
 
开发者ID:mleoking,项目名称:PhET,代码行数:9,代码来源:TestSplitXYPlot.java

示例2: draw

import org.jfree.chart.plot.PlotState; //导入依赖的package包/类
/**
     * Draws the plot on a Java2D graphics device (such as the screen or 
     * a printer).
     *
     * @param g2  the graphics device.
     * @param area  the area within which the plot should be drawn.
     * @param anchor  the anchor point (<code>null</code> permitted).
     * @param parentState  the state from the parent plot, if there is one
     * (<code>null</code> permitted.)
     * @param info  collects info about the drawing (<code>null</code> permitted).
     * @throws NullPointerException  if g2 or area is null.
     */ 
    @Override
    public void draw(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D area, 
            java.awt.geom.Point2D anchor, PlotState parentState, 
            PlotRenderingInfo info) {
    	    	
    	
        // adjust for insets...
        this.getInsets().trim(area);

        if (info != null) {
            info.setPlotArea(area);
            info.setDataArea(area);
        }

        //this.setBackgroundPaint(Color.black);
        
        drawBackground(g2, area);
        drawOutline(g2, area);

        Shape savedClip = g2.getClip();
        g2.clip(area);
/*
        Composite originalComposite = g2.getComposite();		public Collection<String> getIdentifiers(AREAS areas) {
			return Arrays.asList(datas[areas.ordinal()]);
		}
        g2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 
                getForegroundAlpha()));
*/
        drawVenn(g2, area, info);
        
        g2.setClip(savedClip);
   //   g2.setComposite(originalComposite);

        drawOutline(g2, area);
    }
 
开发者ID:chipster,项目名称:chipster,代码行数:48,代码来源:VenndiPlot.java

示例3: draw

import org.jfree.chart.plot.PlotState; //导入依赖的package包/类
public void draw(Graphics2D arg0, Rectangle2D arg1, Point2D arg2, PlotState arg3, PlotRenderingInfo arg4) {
	// TODO Auto-generated method stub
	
}
 
开发者ID:SOCR,项目名称:HTML5_WebSite,代码行数:5,代码来源:HiddenPlot.java


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