timeBench.action.layout.SpanAxisLayout Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of timebench Show documentation
Show all versions of timebench Show documentation
TimeBench, a flexible, easy-to-use, and reusable software library written in Java that provides foundational data structures and algorithms for time- oriented data in Visual Analytics.
The newest version!
package timeBench.action.layout;
import prefuse.data.expression.Predicate;
import timeBench.action.layout.timescale.FisheyeTimeScale;
import timeBench.action.layout.timescale.TimeScale;
import timeBench.data.AnchoredTemporalElement;
import timeBench.data.Span;
/**
* Layout for a {@link Span} based on a parent {@link AnchoredTemporalElement}.
*
* Idea: Inf/Sup of {@link AnchoredTemporalElement} -> middle,
* calculated inf/sup if span was an interval center aligned to parent with Granularity operations,
* calculate width in pixels of span,
* calculate x & width of parent,
* calculate x of span to be visually centered with parent.
*
* Rationale: A {@link Span} of 1 month might be a different number of pixels depending on its temporal location.
* It might also depend on its screen location, if there is distortion ({@link FisheyeTimeScale}).
*
* @author Rind
*/
@Deprecated
public class SpanAxisLayout extends IntervalAxisLayout {
public SpanAxisLayout(String group) {
super(group);
}
public SpanAxisLayout(String group, TimeScale timeScale) {
super(group, timeScale);
}
public SpanAxisLayout(String group, TimeScale timeScale,
int[] pathToInterval) {
super(group, timeScale, pathToInterval);
}
public SpanAxisLayout(String group, int axis, TimeScale timeScale,
Placement placement, Predicate filter) {
super(group, axis, timeScale, placement, filter);
}
@Override
public void run(double frac) {
super.run(frac);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy