本文整理了Java中org.jfree.chart.plot.Plot.getParent()
方法的一些代码示例,展示了Plot.getParent()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Plot.getParent()
方法的具体详情如下:
包路径:org.jfree.chart.plot.Plot
类名称:Plot
方法名:getParent
[英]Returns the parent plot (or null if this plot is not part of a combined plot).
[中]返回父绘图(如果此绘图不是组合绘图的一部分,则返回null)。
代码示例来源:origin: jfree/jfreechart
/**
* Returns {@code true} if this plot is part of a combined plot
* structure (that is, {@link #getParent()} returns a non-{@code null}
* value), and {@code false} otherwise.
*
* @return {@code true} if this plot is part of a combined plot
* structure.
*
* @see #getParent()
*/
public boolean isSubplot() {
return (getParent() != null);
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
/**
* Returns <code>true</code> if this plot is part of a combined plot
* structure (that is, {@link #getParent()} returns a non-<code>null</code>
* value), and <code>false</code> otherwise.
*
* @return <code>true</code> if this plot is part of a combined plot
* structure.
*
* @see #getParent()
*/
public boolean isSubplot() {
return (getParent() != null);
}
代码示例来源:origin: jfree/jfreechart
/**
* Returns the root plot.
*
* @return The root plot.
*
* @see #getParent()
*/
public Plot getRootPlot() {
Plot p = getParent();
if (p == null) {
return this;
}
return p.getRootPlot();
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
/**
* Returns the root plot.
*
* @return The root plot.
*
* @see #getParent()
*/
public Plot getRootPlot() {
Plot p = getParent();
if (p == null) {
return this;
}
else {
return p.getRootPlot();
}
}
代码示例来源:origin: jfree/jfreechart
/**
* Returns the drawing supplier for the plot.
*
* @return The drawing supplier (possibly {@code null}).
*
* @see #setDrawingSupplier(DrawingSupplier)
*/
public DrawingSupplier getDrawingSupplier() {
DrawingSupplier result;
Plot p = getParent();
if (p != null) {
result = p.getDrawingSupplier();
}
else {
result = this.drawingSupplier;
}
return result;
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
/**
* Returns the drawing supplier for the plot.
*
* @return The drawing supplier (possibly <code>null</code>).
*
* @see #setDrawingSupplier(DrawingSupplier)
*/
public DrawingSupplier getDrawingSupplier() {
DrawingSupplier result = null;
Plot p = getParent();
if (p != null) {
result = p.getDrawingSupplier();
}
else {
result = this.drawingSupplier;
}
return result;
}
内容来源于网络,如有侵权,请联系作者删除!