Java 类org.jfree.chart.plot.PlotState 实例源码

项目:PhET    文件:TestSplitXYPlot.java   
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 );
    }
}
项目:chipster    文件:VenndiPlot.java   
/**
     * 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);
    }
项目:HTML5_WebSite    文件:HiddenPlot.java   
public void draw(Graphics2D arg0, Rectangle2D arg1, Point2D arg2, PlotState arg3, PlotRenderingInfo arg4) {
    // TODO Auto-generated method stub

}