本文整理了Java中org.jfree.chart.plot.XYPlot.addRangeMarker()
方法的一些代码示例,展示了XYPlot.addRangeMarker()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XYPlot.addRangeMarker()
方法的具体详情如下:
包路径:org.jfree.chart.plot.XYPlot
类名称:XYPlot
方法名:addRangeMarker
[英]Adds a marker for a specific dataset/renderer and sends a PlotChangeEvent to all registered listeners.
Typically a marker will be drawn by the renderer as a line perpendicular to the range axis, however this is entirely up to the renderer.
[中]为特定的数据集/渲染器添加标记,并向所有注册的侦听器发送PlotChangeEvent。
通常,渲染器会将标记绘制为垂直于范围轴的线,但这完全取决于渲染器。
代码示例来源:origin: yahoo/egads
subplot1.addRangeMarker(new ValueMarker(d));
subplot1.setRangeAxisLocation(AxisLocation.BOTTOM_OR_LEFT);
plot.add(subplot1, 1);
代码示例来源:origin: jfree/jfreechart
/**
* Adds a marker for the range axis and sends a {@link PlotChangeEvent} to
* all registered listeners.
* <P>
* Typically a marker will be drawn by the renderer as a line perpendicular
* to the range axis, however this is entirely up to the renderer.
*
* @param marker the marker ({@code null} not permitted).
*
* @see #addRangeMarker(Marker, Layer)
*/
public void addRangeMarker(Marker marker) {
addRangeMarker(marker, Layer.FOREGROUND);
}
代码示例来源:origin: jfree/jfreechart
/**
* Adds a marker for the range axis in the specified layer and sends a
* {@link PlotChangeEvent} to all registered listeners.
* <P>
* Typically a marker will be drawn by the renderer as a line perpendicular
* to the range axis, however this is entirely up to the renderer.
*
* @param marker the marker ({@code null} not permitted).
* @param layer the layer (foreground or background).
*
* @see #addRangeMarker(int, Marker, Layer)
*/
public void addRangeMarker(Marker marker, Layer layer) {
addRangeMarker(0, marker, layer);
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
/**
* Adds a marker for the range axis and sends a {@link PlotChangeEvent} to
* all registered listeners.
* <P>
* Typically a marker will be drawn by the renderer as a line perpendicular
* to the range axis, however this is entirely up to the renderer.
*
* @param marker the marker (<code>null</code> not permitted).
*
* @see #addRangeMarker(Marker, Layer)
*/
public void addRangeMarker(Marker marker) {
addRangeMarker(marker, Layer.FOREGROUND);
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
/**
* Adds a marker for the range axis in the specified layer and sends a
* {@link PlotChangeEvent} to all registered listeners.
* <P>
* Typically a marker will be drawn by the renderer as a line perpendicular
* to the range axis, however this is entirely up to the renderer.
*
* @param marker the marker (<code>null</code> not permitted).
* @param layer the layer (foreground or background).
*
* @see #addRangeMarker(int, Marker, Layer)
*/
public void addRangeMarker(Marker marker, Layer layer) {
addRangeMarker(0, marker, layer);
}
代码示例来源:origin: jfree/jfreechart
/**
* Adds a marker for a specific dataset/renderer and sends a
* {@link PlotChangeEvent} to all registered listeners.
* <P>
* Typically a marker will be drawn by the renderer as a line perpendicular
* to the range axis, however this is entirely up to the renderer.
*
* @param index the dataset/renderer index.
* @param marker the marker.
* @param layer the layer (foreground or background).
*
* @see #clearRangeMarkers(int)
* @see #addDomainMarker(int, Marker, Layer)
*/
public void addRangeMarker(int index, Marker marker, Layer layer) {
addRangeMarker(index, marker, layer, true);
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
/**
* Adds a marker for a specific dataset/renderer and sends a
* {@link PlotChangeEvent} to all registered listeners.
* <P>
* Typically a marker will be drawn by the renderer as a line perpendicular
* to the range axis, however this is entirely up to the renderer.
*
* @param index the dataset/renderer index.
* @param marker the marker.
* @param layer the layer (foreground or background).
*
* @see #clearRangeMarkers(int)
* @see #addDomainMarker(int, Marker, Layer)
*/
public void addRangeMarker(int index, Marker marker, Layer layer) {
addRangeMarker(index, marker, layer, true);
}
代码示例来源:origin: org.codehaus.mojo/chronos-report-maven-plugin
public static void addRangeMarker( XYPlot xyplot, String label, double value )
{
xyplot.addRangeMarker( addValueMarker( label, value, false ) );
}
代码示例来源:origin: net.sourceforge.ondex.apps/ovtk2-experimental
yMaxMarker = new ValueMarker(yMaxSet);
yMaxMarker.setPaint(Color.green);
plot.addRangeMarker(yMaxMarker);
currentYMax = yMaxSet;
yMinMarker = new ValueMarker(yMinSet);
yMinMarker.setPaint(Color.red);
plot.addRangeMarker(yMinMarker);
currentYMin = yMinSet;
代码示例来源:origin: jfree/eastwood
cp.addRangeMarker(m, Layer.BACKGROUND);
代码示例来源:origin: net.sourceforge.ondex.apps/ovtk2-experimental
plot.addRangeMarker(yMaxMarker);
currentYMax = yMaxValue;
plot.addRangeMarker(yMinMarker);
currentYMin = yMinValue;
代码示例来源:origin: no.uib/jsparklines
plot.addRangeMarker(new ValueMarker(currentReferenceLine.getValue(), currentReferenceLine.getLineColor(), new BasicStroke(currentReferenceLine.getLineWidth())));
IntervalMarker marker = new IntervalMarker(currentReferenceArea.getStart(), currentReferenceArea.getEnd(), currentReferenceArea.getAreaColor());
marker.setAlpha(currentReferenceArea.getAlpha());
plot.addRangeMarker(marker);
代码示例来源:origin: no.uib/jsparklines
plot.addRangeMarker(new ValueMarker(currentReferenceLine.getValue(), currentReferenceLine.getLineColor(), new BasicStroke(currentReferenceLine.getLineWidth())));
IntervalMarker marker = new IntervalMarker(currentReferenceArea.getStart(), currentReferenceArea.getEnd(), currentReferenceArea.getAreaColor());
marker.setAlpha(currentReferenceArea.getAlpha());
plot.addRangeMarker(marker);
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-api
plot.addRangeMarker(valueMarker);
代码示例来源:origin: org.codehaus.jtstand/jtstand-ui
lsl.setLabelAnchor(RectangleAnchor.BOTTOM_RIGHT);
lsl.setLabelTextAnchor(TextAnchor.TOP_RIGHT);
plot.addRangeMarker(lsl);
} else {
lsl.setLabelAnchor(RectangleAnchor.TOP_LEFT);
usl.setLabelAnchor(RectangleAnchor.TOP_RIGHT);
usl.setLabelTextAnchor(TextAnchor.BOTTOM_RIGHT);
plot.addRangeMarker(usl);
} else {
usl.setLabelAnchor(RectangleAnchor.TOP_RIGHT);
代码示例来源:origin: infiniteautomation/ma-core-public
boolean rangeAdjusted = false;
for (Marker marker : pointTimeSeriesCollection.getRangeMarkers()) {
plot.addRangeMarker(marker);
if (marker instanceof ValueMarker) {
ValueMarker vm = (ValueMarker) marker;
内容来源于网络,如有侵权,请联系作者删除!