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

de.gsi.chart.axes.AxisMode Maven / Gradle / Ivy

Go to download

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, ...).

There is a newer version: 11.2.7
Show newest version
package de.gsi.chart.axes;

/**
 * Defines mode of axis-related operations such as zooming or panning.
 *
 * @author Grzegorz Kruk
 */
public enum AxisMode {
    /**
     * The operation should be allowed only along the X axis.
     */
    X,
    /**
     * The operation should be allowed only along Y axis.
     */
    Y,

    /**
     * The operation can be performed on both X and Y axis.
     */
    XY;

    /**
     * Returns {@code true} for {@link #X} and {@link #XY}, {@code false} for {@link #Y}.
     *
     * @return {@code true} for {@code X} and {@code XY}, {@code false} for {@code Y}.
     */
    public boolean allowsX() {
        return this == X || this == XY;
    }

    /**
     * Returns {@code true} for {@link #Y} and {@link #XY}, {@code false} for {@link #X}.
     *
     * @return {@code true} for {@code Y} and {@code XY}, {@code false} for {@code X}.
     */
    public boolean allowsY() {
        return this == Y || this == XY;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy