本文整理汇总了Java中org.jfree.chart.axis.Axis.setTickMarkInsideLength方法的典型用法代码示例。如果您正苦于以下问题:Java Axis.setTickMarkInsideLength方法的具体用法?Java Axis.setTickMarkInsideLength怎么用?Java Axis.setTickMarkInsideLength使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jfree.chart.axis.Axis
的用法示例。
在下文中一共展示了Axis.setTickMarkInsideLength方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setAxisTickMarks
import org.jfree.chart.axis.Axis; //导入方法依赖的package包/类
protected void setAxisTickMarks(Axis axis, Paint lineColor)
{
Boolean defaultAxisTickMarksVisible = (Boolean)getDefaultValue(defaultAxisPropertiesMap, ChartThemesConstants.AXIS_TICK_MARKS_VISIBLE);
if (defaultAxisTickMarksVisible != null && defaultAxisTickMarksVisible.booleanValue())
{
Float defaultAxisTickMarksInsideLength = (Float)getDefaultValue(defaultAxisPropertiesMap, ChartThemesConstants.AXIS_TICK_MARKS_INSIDE_LENGTH);
if (defaultAxisTickMarksInsideLength != null)
axis.setTickMarkInsideLength(defaultAxisTickMarksInsideLength.floatValue());
Float defaultAxisTickMarksOutsideLength = (Float)getDefaultValue(defaultAxisPropertiesMap, ChartThemesConstants.AXIS_TICK_MARKS_OUTSIDE_LENGTH);
if (defaultAxisTickMarksOutsideLength != null)
axis.setTickMarkInsideLength(defaultAxisTickMarksOutsideLength.floatValue());
Paint tickMarkPaint = getDefaultValue(defaultAxisPropertiesMap, ChartThemesConstants.AXIS_TICK_MARKS_PAINT) != null ?
(Paint)getDefaultValue(defaultAxisPropertiesMap, ChartThemesConstants.AXIS_TICK_MARKS_PAINT) :
lineColor;
if (tickMarkPaint != null)
{
axis.setTickMarkPaint(tickMarkPaint);
}
Stroke defaultTickMarkStroke = (Stroke)getDefaultValue(defaultAxisPropertiesMap, ChartThemesConstants.AXIS_TICK_MARKS_STROKE);
if (defaultTickMarkStroke != null)
axis.setTickMarkStroke(defaultTickMarkStroke);
}
}
示例2: setAxisTickMarks
import org.jfree.chart.axis.Axis; //导入方法依赖的package包/类
protected void setAxisTickMarks(Axis axis, Paint lineColor, AxisSettings axisSettings)
{
boolean axisTickMarksVisible = axisSettings.getTickMarksVisible() == null || axisSettings.getTickMarksVisible().booleanValue();
axis.setTickMarksVisible(axisTickMarksVisible);
if (axisTickMarksVisible)
{
Float axisTickMarksInsideLength = axisSettings.getTickMarksInsideLength();
if (axisTickMarksInsideLength != null)
axis.setTickMarkInsideLength(axisTickMarksInsideLength.floatValue());
Float axisTickMarksOutsideLength = axisSettings.getTickMarksOutsideLength();
if (axisTickMarksOutsideLength != null)
axis.setTickMarkInsideLength(axisTickMarksOutsideLength.floatValue());
Paint tickMarkPaint = axisSettings.getTickMarksPaint() != null && axisSettings.getTickMarksPaint().getPaint() != null
? axisSettings.getTickMarksPaint().getPaint()
: lineColor;
if (tickMarkPaint != null)
{
axis.setTickMarkPaint(tickMarkPaint);
}
Stroke tickMarkStroke = axisSettings.getTickMarksStroke();
if (tickMarkStroke != null)
axis.setTickMarkStroke(tickMarkStroke);
}
}