io.fair_acc.chartfx.ui.css.LineStyle Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chartfx Show documentation
Show all versions of chartfx Show documentation
This charting library ${project.artifactId}- is an extension
in the spirit of Oracle's XYChart and performance/time-proven JDataViewer charting functionalities.
Emphasis was put on plotting performance for both large number of data points and real-time displays,
as well as scientific accuracies leading to error bar/surface plots, and other scientific plotting
features (parameter measurements, fitting, multiple axes, zoom, ...).
The newest version!
package io.fair_acc.chartfx.ui.css;
import javafx.beans.property.LongProperty;
import javafx.beans.property.ReadOnlyLongProperty;
import javafx.beans.property.SimpleLongProperty;
import javafx.scene.shape.Line;
/**
* @author ennerf
*/
public class LineStyle extends Line implements StyleUtil.StyleNode {
public LineStyle(String... styles) {
StyleUtil.styleNode(this, styles);
StyleUtil.forEachStyleProp(this, StyleUtil.incrementOnChange(changeCounter));
}
@Override
public String toString() {
return StyleUtil.toStyleString(this);
}
public ReadOnlyLongProperty changeCounterProperty() {
return changeCounter;
}
private final LongProperty changeCounter = new SimpleLongProperty(0);
}