本文整理汇总了Java中org.jfree.chart.labels.StandardCrosshairLabelGenerator类的典型用法代码示例。如果您正苦于以下问题:Java StandardCrosshairLabelGenerator类的具体用法?Java StandardCrosshairLabelGenerator怎么用?Java StandardCrosshairLabelGenerator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
StandardCrosshairLabelGenerator类属于org.jfree.chart.labels包,在下文中一共展示了StandardCrosshairLabelGenerator类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: Crosshair
import org.jfree.chart.labels.StandardCrosshairLabelGenerator; //导入依赖的package包/类
/**
* Creates a new crosshair value with the specified value and line style.
*
* @param value the value.
* @param paint the line paint (<code>null</code> not permitted).
* @param stroke the line stroke (<code>null</code> not permitted).
*/
public Crosshair(double value, Paint paint, Stroke stroke) {
ParamChecks.nullNotPermitted(paint, "paint");
ParamChecks.nullNotPermitted(stroke, "stroke");
this.visible = true;
this.value = value;
this.paint = paint;
this.stroke = stroke;
this.labelVisible = false;
this.labelGenerator = new StandardCrosshairLabelGenerator();
this.labelAnchor = RectangleAnchor.BOTTOM_LEFT;
this.labelXOffset = 3.0;
this.labelYOffset = 3.0;
this.labelFont = new Font("Tahoma", Font.PLAIN, 12);
this.labelPaint = Color.black;
this.labelBackgroundPaint = new Color(0, 0, 255, 63);
this.labelOutlineVisible = true;
this.labelOutlinePaint = Color.black;
this.labelOutlineStroke = new BasicStroke(0.5f);
this.pcs = new PropertyChangeSupport(this);
}
开发者ID:mdzio,项目名称:ccu-historian,代码行数:28,代码来源:Crosshair.java
示例2: Crosshair
import org.jfree.chart.labels.StandardCrosshairLabelGenerator; //导入依赖的package包/类
/**
* Creates a new crosshair value with the specified value and line style.
*
* @param value the value.
* @param paint the line paint ({@code null} not permitted).
* @param stroke the line stroke ({@code null} not permitted).
*/
public Crosshair(double value, Paint paint, Stroke stroke) {
Args.nullNotPermitted(paint, "paint");
Args.nullNotPermitted(stroke, "stroke");
this.visible = true;
this.value = value;
this.paint = paint;
this.stroke = stroke;
this.labelVisible = false;
this.labelGenerator = new StandardCrosshairLabelGenerator();
this.labelAnchor = RectangleAnchor.BOTTOM_LEFT;
this.labelXOffset = 3.0;
this.labelYOffset = 3.0;
this.labelFont = new Font("Tahoma", Font.PLAIN, 12);
this.labelPaint = Color.BLACK;
this.labelBackgroundPaint = new Color(0, 0, 255, 63);
this.labelOutlineVisible = true;
this.labelOutlinePaint = Color.BLACK;
this.labelOutlineStroke = new BasicStroke(0.5f);
this.pcs = new PropertyChangeSupport(this);
}
开发者ID:jfree,项目名称:jfreechart,代码行数:28,代码来源:Crosshair.java
示例3: Crosshair
import org.jfree.chart.labels.StandardCrosshairLabelGenerator; //导入依赖的package包/类
/**
* Creates a new crosshair value with the specified value and line style.
*
* @param value the value.
* @param paint the line paint (<code>null</code> not permitted).
* @param stroke the line stroke (<code>null</code> not permitted).
*/
public Crosshair(double value, Paint paint, Stroke stroke) {
if (paint == null) {
throw new IllegalArgumentException("Null 'paint' argument.");
}
if (stroke == null) {
throw new IllegalArgumentException("Null 'stroke' argument.");
}
this.visible = true;
this.value = value;
this.paint = paint;
this.stroke = stroke;
this.labelVisible = false;
this.labelGenerator = new StandardCrosshairLabelGenerator();
this.labelAnchor = RectangleAnchor.BOTTOM_LEFT;
this.labelXOffset = 3.0;
this.labelYOffset = 3.0;
this.labelFont = new Font("Tahoma", Font.PLAIN, 12);
this.labelPaint = Color.black;
this.labelBackgroundPaint = new Color(0, 0, 255, 63);
this.labelOutlineVisible = true;
this.labelOutlinePaint = Color.black;
this.labelOutlineStroke = new BasicStroke(0.5f);
this.pcs = new PropertyChangeSupport(this);
}
开发者ID:lulab,项目名称:PI,代码行数:32,代码来源:Crosshair.java
示例4: Crosshair
import org.jfree.chart.labels.StandardCrosshairLabelGenerator; //导入依赖的package包/类
/**
* Creates a new crosshair value with the specified value and line style.
*
* @param value the value.
* @param paint the line paint (<code>null</code> not permitted).
* @param stroke the line stroke (<code>null</code> not permitted).
*/
public Crosshair(double value, Paint paint, Stroke stroke) {
ParamChecks.nullNotPermitted(paint, "paint");
ParamChecks.nullNotPermitted(stroke, "stroke");
this.visible = true;
this.value = value;
this.paint = paint;
this.stroke = stroke;
this.labelVisible = false;
this.labelGenerator = new StandardCrosshairLabelGenerator();
this.labelAnchor = RectangleAnchor.BOTTOM_LEFT;
this.labelXOffset = 3.0;
this.labelYOffset = 3.0;
this.labelFont = new Font(JFreeChart.getFont(), Font.PLAIN, 12);
this.labelPaint = Color.black;
this.labelBackgroundPaint = new Color(0, 0, 255, 63);
this.labelOutlineVisible = true;
this.labelOutlinePaint = Color.black;
this.labelOutlineStroke = new BasicStroke(0.5f);
this.pcs = new PropertyChangeSupport(this);
}
开发者ID:hongliangpan,项目名称:manydesigns.cn,代码行数:28,代码来源:Crosshair.java
注:本文中的org.jfree.chart.labels.StandardCrosshairLabelGenerator类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论