![JAR search and dependency download from the Maven repository](/logo.png)
net.sourceforge.plantuml.project.timescale.TimeScaleDaily Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plantuml-mit Show documentation
Show all versions of plantuml-mit Show documentation
PlantUML is a component that allows to quickly write diagrams from text.
// THIS FILE HAS BEEN GENERATED BY A PREPROCESSOR.
package net.sourceforge.plantuml.project.timescale;
import net.sourceforge.plantuml.project.core.PrintScale;
import net.sourceforge.plantuml.project.time.Day;
public final class TimeScaleDaily implements TimeScale {
// ::remove folder when __HAXE__
private final TimeScaleWink basic;
private final double delta;
public TimeScaleDaily(Day startingDay, double scale, Day zeroDay) {
this.basic = new TimeScaleWink(scale, PrintScale.DAILY);
if (zeroDay == null)
this.delta = basic.getStartingPosition(startingDay);
else
this.delta = basic.getStartingPosition(zeroDay);
}
public double getStartingPosition(Day instant) {
return basic.getStartingPosition(instant) - delta;
}
public double getEndingPosition(Day instant) {
return basic.getEndingPosition(instant) - delta;
}
public double getWidth(Day instant) {
return basic.getWidth(instant);
}
public boolean isBreaking(Day instant) {
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy