![JAR search and dependency download from the Maven repository](/logo.png)
de.gsi.chart.axes.AxisMode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chartfx-chart Show documentation
Show all versions of chartfx-chart 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, ...).
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 - 2025 Weber Informatics LLC | Privacy Policy