本文整理了Java中org.jfree.chart.title.TextTitle.arrangeFN()
方法的一些代码示例,展示了TextTitle.arrangeFN()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TextTitle.arrangeFN()
方法的具体详情如下:
包路径:org.jfree.chart.title.TextTitle
类名称:TextTitle
方法名:arrangeFN
[英]Arranges the content for this title assuming a fixed width and no bounds on the height, and returns the required size. This will reflect the fact that a text title positioned on the left or right of a chart will be rotated by 90 degrees.
[中]假定此标题的内容具有固定的宽度且高度不受限制,并返回所需的大小。这将反映一个事实,即位于图表左侧或右侧的文本标题将旋转90度。
代码示例来源:origin: jfree/jfreechart
/**
* Arranges the content for this title assuming a range constraint for the
* width and no bounds on the height, and returns the required size. This
* will reflect the fact that a text title positioned on the left or right
* of a chart will be rotated by 90 degrees.
*
* @param g2 the graphics target.
* @param widthRange the range for the width.
*
* @return The content size.
*
* @since 1.0.9
*/
protected Size2D arrangeRN(Graphics2D g2, Range widthRange) {
Size2D s = arrangeNN(g2);
if (widthRange.contains(s.getWidth())) {
return s;
}
double ww = widthRange.constrain(s.getWidth());
return arrangeFN(g2, ww);
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
/**
* Arranges the content for this title assuming a range constraint for the
* width and no bounds on the height, and returns the required size. This
* will reflect the fact that a text title positioned on the left or right
* of a chart will be rotated by 90 degrees.
*
* @param g2 the graphics target.
* @param widthRange the range for the width.
*
* @return The content size.
*
* @since 1.0.9
*/
protected Size2D arrangeRN(Graphics2D g2, Range widthRange) {
Size2D s = arrangeNN(g2);
if (widthRange.contains(s.getWidth())) {
return s;
}
double ww = widthRange.constrain(s.getWidth());
return arrangeFN(g2, ww);
}
代码示例来源:origin: jfree/jfreechart
contentSize = arrangeFN(g2, cc.getWidth());
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
contentSize = arrangeFN(g2, cc.getWidth());
内容来源于网络,如有侵权,请联系作者删除!