本文整理汇总了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 );
}
}
示例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);
}
示例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
}