本文整理汇总了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);
}
}
}
示例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;
}
}
示例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;
}
}
示例4: getCeilingTickUnit
import org.jfree.chart.axis.TickUnit; //导入依赖的package包/类
public TickUnit getCeilingTickUnit(TickUnit unit) {
return new TicketUnitImpl(labelFormat,unit);
}
示例5: getLargerTickUnit
import org.jfree.chart.axis.TickUnit; //导入依赖的package包/类
public TickUnit getLargerTickUnit(TickUnit unit) {
return new TicketUnitImpl(labelFormat,unit);
}
示例6: getCeilingTickUnit
import org.jfree.chart.axis.TickUnit; //导入依赖的package包/类
@Override
public TickUnit getCeilingTickUnit(TickUnit unit) {
return new TickUnitWrap(tus.getCeilingTickUnit(unit),labelFormat);
}
示例7: getLargerTickUnit
import org.jfree.chart.axis.TickUnit; //导入依赖的package包/类
@Override
public TickUnit getLargerTickUnit(TickUnit unit) {
return new TickUnitWrap(tus.getLargerTickUnit(unit),labelFormat);
}
示例8: TickUnitWrap
import org.jfree.chart.axis.TickUnit; //导入依赖的package包/类
public TickUnitWrap(TickUnit tickUnit, int labelFormat) {
super(tickUnit.getSize());
this.tickUnit=tickUnit;
this.labelFormat=labelFormat;
}
示例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();
}
示例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;
}
示例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();
}
示例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;
}
示例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();
}
示例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());
}