All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.puresoltechnologies.javafx.charts.plots.PointBasedPlot Maven / Gradle / Ivy

There is a newer version: 0.13.0
Show newest version
package com.puresoltechnologies.javafx.charts.plots;

import javafx.beans.property.DoubleProperty;
import javafx.beans.property.ObjectProperty;

/**
 * A point based plot is a simple plot which shows its data as single mark
 * defined with X and Y coordinate. A non point-based plot could be bubble plots
 * or bar charts.
 *
 * @author Rick-Rainer Ludwig
 *
 * @param  see {@link Plot}.
 * @param  see {@link Plot}.
 * @param  see {@link Plot}.
 */
public interface PointBasedPlot, Y extends Comparable, D extends PlotDatum>
	extends Plot {

    ObjectProperty markerTypeProperty();

    default MarkerType getMarkerType() {
	return markerTypeProperty().getValue();
    }

    default void setMarkerType(MarkerType markerType) {
	markerTypeProperty().setValue(markerType);
    }

    DoubleProperty markerSizeProperty();

    default double getMarkerSize() {
	return markerSizeProperty().getValue();
    }

    default void setMarkerSize(double markerSize) {
	markerSizeProperty().setValue(markerSize);
    }

    /**
     * Returns the {@link InterpolationType} property.
     *
     * @return
     */
    ObjectProperty interpolationTypeProperty();

    /**
     * Returns the {@link InterpolationType}.
     *
     * @return
     */
    default InterpolationType getInterpolationType() {
	return interpolationTypeProperty().getValue();
    }

    /**
     * Sets the {@link InterpolationType}.
     *
     * @param interpolationType is the {@link InterpolationType} to be set.
     */
    default void setInterpolationType(InterpolationType interpolationType) {
	interpolationTypeProperty().setValue(interpolationType);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy