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


Java TickUnit类代码示例

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


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

示例1: setAutoTickUnit

import org.jfree.chart.axis.TickUnit; //导入依赖的package包/类
public void setAutoTickUnit(NumberAxis numberAxis)
{
	if (numberAxis.isAutoTickUnitSelection())
	{
		Range range = numberAxis.getRange();
		if (range.getLength() >= AUTO_TICK_UNIT_THRESHOLD)
		{
			// this is a workaround for a floating point error makes JFreeChart
			// select tick units that are too small when the values are very large
			double autoSize = range.getLength() / AUTO_TICK_UNIT_THRESHOLD;
			TickUnit unit = numberAxis.getStandardTickUnits().getCeilingTickUnit(autoSize);
			numberAxis.setTickUnit((NumberTickUnit) unit, false, false);
		}
	}
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:16,代码来源:ChartUtil.java

示例2: getCeilingTickUnit

import org.jfree.chart.axis.TickUnit; //导入依赖的package包/类
@Override
public TickUnit getCeilingTickUnit(double size) {
	TickUnit newUnit = decorated.getCeilingTickUnit(size);
	if(newUnit.compareTo(lowerUnit)<0) {
		return lowerUnit;
	} else {
		return newUnit;
	}
}
 
开发者ID:lafourchette,项目名称:solrmeter,代码行数:10,代码来源:ChartUtils.java

示例3: getLargerTickUnit

import org.jfree.chart.axis.TickUnit; //导入依赖的package包/类
@Override
public TickUnit getLargerTickUnit(TickUnit unit) {
	TickUnit newUnit = decorated.getLargerTickUnit(unit);
	if(newUnit.compareTo(lowerUnit)<0) {
		return lowerUnit;
	} else {
		return newUnit;
	}
}
 
开发者ID:lafourchette,项目名称:solrmeter,代码行数:10,代码来源:ChartUtils.java

示例4: getCeilingTickUnit

import org.jfree.chart.axis.TickUnit; //导入依赖的package包/类
public TickUnit getCeilingTickUnit(TickUnit unit) {
	return new TicketUnitImpl(labelFormat,unit);
}
 
开发者ID:lucee,项目名称:Lucee4,代码行数:4,代码来源:TickUnitSourceImpl.java

示例5: getLargerTickUnit

import org.jfree.chart.axis.TickUnit; //导入依赖的package包/类
public TickUnit getLargerTickUnit(TickUnit unit) {
	return new TicketUnitImpl(labelFormat,unit);
}
 
开发者ID:lucee,项目名称:Lucee4,代码行数:4,代码来源:TickUnitSourceImpl.java

示例6: getCeilingTickUnit

import org.jfree.chart.axis.TickUnit; //导入依赖的package包/类
@Override
public TickUnit getCeilingTickUnit(TickUnit unit) {
	return new TickUnitWrap(tus.getCeilingTickUnit(unit),labelFormat);
}
 
开发者ID:lucee,项目名称:Lucee4,代码行数:5,代码来源:TickUnitsImpl.java

示例7: getLargerTickUnit

import org.jfree.chart.axis.TickUnit; //导入依赖的package包/类
@Override
public TickUnit getLargerTickUnit(TickUnit unit) {
	return new TickUnitWrap(tus.getLargerTickUnit(unit),labelFormat);
}
 
开发者ID:lucee,项目名称:Lucee4,代码行数:5,代码来源:TickUnitsImpl.java

示例8: TickUnitWrap

import org.jfree.chart.axis.TickUnit; //导入依赖的package包/类
public TickUnitWrap(TickUnit tickUnit, int labelFormat) {
	super(tickUnit.getSize());
	this.tickUnit=tickUnit;
	this.labelFormat=labelFormat;
}
 
开发者ID:lucee,项目名称:Lucee4,代码行数:6,代码来源:TickUnitWrap.java

示例9: setAngleTickUnit

import org.jfree.chart.axis.TickUnit; //导入依赖的package包/类
/**
 * Sets the tick unit that controls the spacing of the angular grid
 * lines, and sends a {@link PlotChangeEvent} to all registered listeners.
 *
 * @param unit  the tick unit (<code>null</code> not permitted).
 *
 * @since 1.0.10
 */
public void setAngleTickUnit(TickUnit unit) {
    if (unit == null) {
        throw new IllegalArgumentException("Null 'unit' argument.");
    }
    this.angleTickUnit = unit;
    fireChangeEvent();
}
 
开发者ID:SOCR,项目名称:HTML5_WebSite,代码行数:16,代码来源:PolarPlot.java

示例10: getAngleTickUnit

import org.jfree.chart.axis.TickUnit; //导入依赖的package包/类
/**
 * Returns the tick unit that controls the spacing of the angular grid
 * lines.
 *
 * @return The tick unit (never <code>null</code>).
 *
 * @since 1.0.10
 */
public TickUnit getAngleTickUnit() {
    return this.angleTickUnit;
}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:12,代码来源:PolarPlot.java

示例11: setAngleTickUnit

import org.jfree.chart.axis.TickUnit; //导入依赖的package包/类
/**
 * Sets the tick unit that controls the spacing of the angular grid
 * lines, and sends a {@link PlotChangeEvent} to all registered listeners.
 *
 * @param unit  the tick unit (<code>null</code> not permitted).
 *
 * @since 1.0.10
 */
public void setAngleTickUnit(TickUnit unit) {
    ParamChecks.nullNotPermitted(unit, "unit");
    this.angleTickUnit = unit;
    fireChangeEvent();
}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:14,代码来源:PolarPlot.java

示例12: getAngleTickUnit

import org.jfree.chart.axis.TickUnit; //导入依赖的package包/类
/**
 * Returns the tick unit that controls the spacing of the angular grid
 * lines.
 *
 * @return The tick unit (never {@code null}).
 *
 * @since 1.0.10
 */
public TickUnit getAngleTickUnit() {
    return this.angleTickUnit;
}
 
开发者ID:jfree,项目名称:jfreechart,代码行数:12,代码来源:PolarPlot.java

示例13: setAngleTickUnit

import org.jfree.chart.axis.TickUnit; //导入依赖的package包/类
/**
 * Sets the tick unit that controls the spacing of the angular grid
 * lines, and sends a {@link PlotChangeEvent} to all registered listeners.
 *
 * @param unit  the tick unit ({@code null} not permitted).
 *
 * @since 1.0.10
 */
public void setAngleTickUnit(TickUnit unit) {
    Args.nullNotPermitted(unit, "unit");
    this.angleTickUnit = unit;
    fireChangeEvent();
}
 
开发者ID:jfree,项目名称:jfreechart,代码行数:14,代码来源:PolarPlot.java

示例14: TicketUnitImpl

import org.jfree.chart.axis.TickUnit; //导入依赖的package包/类
/**
 * Constructor of the class
 * @param unit
 */
public TicketUnitImpl(int labelFormat,TickUnit unit) {
	this(labelFormat,unit.getSize());
}
 
开发者ID:lucee,项目名称:Lucee4,代码行数:8,代码来源:TicketUnitImpl.java


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