当前位置: 首页>>代码示例>>Java>>正文


Java Axis.setTickMarksVisible方法代码示例

本文整理汇总了Java中org.jfree.chart.axis.Axis.setTickMarksVisible方法的典型用法代码示例。如果您正苦于以下问题:Java Axis.setTickMarksVisible方法的具体用法?Java Axis.setTickMarksVisible怎么用?Java Axis.setTickMarksVisible使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.jfree.chart.axis.Axis的用法示例。


在下文中一共展示了Axis.setTickMarksVisible方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setAxisProperties

import org.jfree.chart.axis.Axis; //导入方法依赖的package包/类
/**
 * Sets the properties of the specified axis to match the properties
 * defined on this panel.
 *
 * @param axis  the axis.
 */
public void setAxisProperties(Axis axis) {
    axis.setLabel(getLabel());
    axis.setLabelFont(getLabelFont());
    axis.setLabelPaint(getLabelPaint());
    axis.setTickMarksVisible(isTickMarksVisible());
    // axis.setTickMarkStroke(getTickMarkStroke());
    axis.setTickLabelsVisible(isTickLabelsVisible());
    axis.setTickLabelFont(getTickLabelFont());
    axis.setTickLabelPaint(getTickLabelPaint());
    axis.setTickLabelInsets(getTickLabelInsets());
    axis.setLabelInsets(getLabelInsets());
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:19,代码来源:AxisPropertyEditPanel.java

示例2: setAxisProperties

import org.jfree.chart.axis.Axis; //导入方法依赖的package包/类
/**
 * Sets the properties of the specified axis to match 
 * the properties defined on this panel.
 *
 * @param axis  the axis.
 */
public void setAxisProperties(Axis axis) {
    axis.setLabel(getLabel());
    axis.setLabelFont(getLabelFont());
    axis.setLabelPaint(getLabelPaint());
    axis.setTickMarksVisible(showTickMarksCheckBox.getSelection());
    axis.setTickLabelsVisible(showTickLabelsCheckBox.getSelection());
    axis.setTickLabelFont(getTickLabelFont());
    axis.setTickLabelPaint(getTickLabelPaint());
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:16,代码来源:SWTAxisEditor.java

示例3: setAxisProperties

import org.jfree.chart.axis.Axis; //导入方法依赖的package包/类
/**
 * Sets the properties of the specified axis to match
 * the properties defined on this panel.
 *
 * @param axis  the axis.
 */
public void setAxisProperties(Axis axis) {
    axis.setLabel(getLabel());
    axis.setLabelFont(getLabelFont());
    axis.setLabelPaint(getLabelPaint());
    axis.setTickMarksVisible(this.showTickMarksCheckBox.getSelection());
    axis.setTickLabelsVisible(this.showTickLabelsCheckBox.getSelection());
    axis.setTickLabelFont(getTickLabelFont());
    axis.setTickLabelPaint(getTickLabelPaint());
}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:16,代码来源:SWTAxisEditor.java

示例4: 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);
	}
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:30,代码来源:SimpleChartTheme.java

示例5: setAxisProperties

import org.jfree.chart.axis.Axis; //导入方法依赖的package包/类
/**
 * Sets the properties of the specified axis to match the properties defined on this panel.
 *
 * @param axis
 *            the axis.
 */
public void setAxisProperties(final Axis axis) {
	axis.setLabel(getLabel());
	axis.setLabelFont(getLabelFont());
	axis.setLabelPaint(getLabelPaint());
	axis.setTickMarksVisible(this.showTickMarksCheckBox.getSelection());
	axis.setTickLabelsVisible(this.showTickLabelsCheckBox.getSelection());
	axis.setTickLabelFont(getTickLabelFont());
	axis.setTickLabelPaint(getTickLabelPaint());
}
 
开发者ID:gama-platform,项目名称:gama,代码行数:16,代码来源:SWTChartEditor.java


注:本文中的org.jfree.chart.axis.Axis.setTickMarksVisible方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。