Java 类org.jfree.chart.axis.TickUnit 实例源码

项目:jasperreports    文件:ChartUtil.java   
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);
        }
    }
}
项目:solrmeter    文件:ChartUtils.java   
@Override
public TickUnit getCeilingTickUnit(double size) {
    TickUnit newUnit = decorated.getCeilingTickUnit(size);
    if(newUnit.compareTo(lowerUnit)<0) {
        return lowerUnit;
    } else {
        return newUnit;
    }
}
项目:solrmeter    文件:ChartUtils.java   
@Override
public TickUnit getCeilingTickUnit(TickUnit unit) {
    TickUnit newUnit = decorated.getCeilingTickUnit(unit);
    if(newUnit.compareTo(lowerUnit)<0) {
        return lowerUnit;
    } else {
        return newUnit;
    }
}
项目:solrmeter    文件:ChartUtils.java   
@Override
public TickUnit getLargerTickUnit(TickUnit unit) {
    TickUnit newUnit = decorated.getLargerTickUnit(unit);
    if(newUnit.compareTo(lowerUnit)<0) {
        return lowerUnit;
    } else {
        return newUnit;
    }
}
项目:Lucee4    文件:TickUnitSourceImpl.java   
public TickUnit getCeilingTickUnit(TickUnit unit) {
    return new TicketUnitImpl(labelFormat,unit);
}
项目:Lucee4    文件:TickUnitSourceImpl.java   
public TickUnit getCeilingTickUnit(double size) {
    return new TicketUnitImpl(labelFormat,size);
}
项目:Lucee4    文件:TickUnitSourceImpl.java   
public TickUnit getLargerTickUnit(TickUnit unit) {
    return new TicketUnitImpl(labelFormat,unit);
}
项目:Lucee4    文件:TickUnitsImpl.java   
@Override
public TickUnit getCeilingTickUnit(TickUnit unit) {
    return new TickUnitWrap(tus.getCeilingTickUnit(unit),labelFormat);
}
项目:Lucee4    文件:TickUnitsImpl.java   
@Override
public TickUnit getCeilingTickUnit(double size) {
    return new TickUnitWrap(tus.getCeilingTickUnit(size),labelFormat);
}
项目:Lucee4    文件:TickUnitsImpl.java   
@Override
public TickUnit getLargerTickUnit(TickUnit unit) {
    return new TickUnitWrap(tus.getLargerTickUnit(unit),labelFormat);
}
项目:Lucee4    文件:TickUnitWrap.java   
public TickUnitWrap(TickUnit tickUnit, int labelFormat) {
    super(tickUnit.getSize());
    this.tickUnit=tickUnit;
    this.labelFormat=labelFormat;
}
项目:HTML5_WebSite    文件:PolarPlot.java   
/**
 * 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();
}
项目:PI    文件:PolarPlot.java   
/**
 * 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();
}
项目:astor    文件:PolarPlot.java   
/**
 * 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();
}
项目:ccu-historian    文件:PolarPlot.java   
/**
 * 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;
}
项目:ccu-historian    文件:PolarPlot.java   
/**
 * 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();
}
项目:jfreechart    文件:PolarPlot.java   
/**
 * 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;
}
项目:jfreechart    文件:PolarPlot.java   
/**
 * 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();
}
项目:aya-lang    文件:PolarPlot.java   
/**
 * 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;
}
项目:aya-lang    文件:PolarPlot.java   
/**
 * 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();
}
项目:HTML5_WebSite    文件:PolarPlot.java   
/**
 * 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;
}
项目:populus    文件:PolarPlot.java   
/**
 * 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;
}
项目:populus    文件:PolarPlot.java   
/**
 * 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();
}
项目:Lucee4    文件:TicketUnitImpl.java   
/**
 * Constructor of the class
 * @param unit
 */
public TicketUnitImpl(int labelFormat,TickUnit unit) {
    this(labelFormat,unit.getSize());
}
项目:PI    文件:PolarPlot.java   
/**
 * 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;
}
项目:ECG-Viewer    文件:PolarPlot.java   
/**
 * 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;
}
项目:ECG-Viewer    文件:PolarPlot.java   
/**
 * 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();
}
项目:astor    文件:PolarPlot.java   
/**
 * 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;
}
项目:group-five    文件:PolarPlot.java   
/**
 * 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;
}
项目:group-five    文件:PolarPlot.java   
/**
 * 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();
}
项目:manydesigns.cn    文件:PolarPlot.java   
/**
 * 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;
}
项目:manydesigns.cn    文件:PolarPlot.java   
/**
 * 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();
}
项目:buffer_bci    文件:PolarPlot.java   
/**
 * 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;
}
项目:buffer_bci    文件:PolarPlot.java   
/**
 * 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();
}
项目:buffer_bci    文件:PolarPlot.java   
/**
 * 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;
}
项目:buffer_bci    文件:PolarPlot.java   
/**
 * 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();
}
项目:proyecto-teoria-control-utn-frro    文件:PolarPlot.java   
/**
 * 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;
}
项目:proyecto-teoria-control-utn-frro    文件:PolarPlot.java   
/**
 * 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();
}
项目:Memetic-Algorithm-for-TSP    文件:PolarPlot.java   
/**
 * 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;
}
项目:Memetic-Algorithm-for-TSP    文件:PolarPlot.java   
/**
 * 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();
}