本文整理汇总了Java中org.jfree.chart.axis.Axis.setAxisLineStroke方法的典型用法代码示例。如果您正苦于以下问题:Java Axis.setAxisLineStroke方法的具体用法?Java Axis.setAxisLineStroke怎么用?Java Axis.setAxisLineStroke使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jfree.chart.axis.Axis
的用法示例。
在下文中一共展示了Axis.setAxisLineStroke方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setAxisLine
import org.jfree.chart.axis.Axis; //导入方法依赖的package包/类
protected void setAxisLine(Axis axis, Paint lineColor)
{
Boolean defaultAxisLineVisible = (Boolean)getDefaultValue(defaultAxisPropertiesMap, ChartThemesConstants.AXIS_LINE_VISIBLE);
if (defaultAxisLineVisible != null && defaultAxisLineVisible.booleanValue())
{
Paint linePaint = lineColor != null ?
lineColor :
(Paint)getDefaultValue(defaultAxisPropertiesMap, ChartThemesConstants.AXIS_LINE_PAINT);
if (linePaint != null)
{
axis.setAxisLinePaint(linePaint);
}
Stroke defaultAxisLineStroke = (Stroke)getDefaultValue(defaultAxisPropertiesMap, ChartThemesConstants.AXIS_LINE_STROKE);
if (defaultAxisLineStroke != null)
axis.setAxisLineStroke(defaultAxisLineStroke);
}
}
示例2: setAxisLine
import org.jfree.chart.axis.Axis; //导入方法依赖的package包/类
protected void setAxisLine(Axis axis, Paint lineColor, AxisSettings axisSettings)
{
Boolean axisLineVisible = axisSettings.getLineVisible();
if (axisLineVisible == null || axisLineVisible.booleanValue())
{
Paint linePaint = lineColor;
if (linePaint == null && axisSettings.getLinePaint() != null)
{
linePaint = axisSettings.getLinePaint().getPaint();
}
if (linePaint != null)
{
axis.setAxisLinePaint(linePaint);
}
Stroke axisLineStroke = axisSettings.getLineStroke();
if (axisLineStroke != null)
axis.setAxisLineStroke(axisLineStroke);
}
else
{
axis.setAxisLineVisible(false);
}
}
示例3: formatAxis
import org.jfree.chart.axis.Axis; //导入方法依赖的package包/类
public static void formatAxis(PlotConfiguration plotConfiguration, Axis axis) {
Color axisColor = plotConfiguration.getAxisLineColor();
if (axis != null) {
axis.setAxisLinePaint(axisColor);
axis.setAxisLineStroke(new BasicStroke(plotConfiguration.getAxisLineWidth()));
axis.setLabelPaint(axisColor);
axis.setTickLabelPaint(axisColor);
}
}
示例4: formatAxis
import org.jfree.chart.axis.Axis; //导入方法依赖的package包/类
public static void formatAxis(PlotConfiguration plotConfiguration, Axis axis) {
Color axisColor = plotConfiguration.getAxisLineColor();
if(axis != null) {
axis.setAxisLinePaint(axisColor);
axis.setAxisLineStroke(new BasicStroke(plotConfiguration.getAxisLineWidth()));
axis.setLabelPaint(axisColor);
axis.setTickLabelPaint(axisColor);
}
}