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

java.awt.BufferCapabilities Maven / Gradle / Ivy

Go to download

JVM AOT compiler currently generating JavaScript, C++, Haxe, with initial focus on Kotlin and games.

There is a newer version: 0.6.8
Show newest version
package java.awt;

@SuppressWarnings({"WeakerAccess", "unused"})
public class BufferCapabilities implements Cloneable {
	private ImageCapabilities frontCaps;
	private ImageCapabilities backCaps;
	private FlipContents flipContents;

	public BufferCapabilities(ImageCapabilities frontCaps, ImageCapabilities backCaps, FlipContents flipContents) {
		this.frontCaps = frontCaps;
		this.backCaps = backCaps;
		this.flipContents = flipContents;
	}

	public ImageCapabilities getFrontBufferCapabilities() {
		return frontCaps;
	}

	public ImageCapabilities getBackBufferCapabilities() {
		return backCaps;
	}

	public boolean isPageFlipping() {
		return (getFlipContents() != null);
	}

	public FlipContents getFlipContents() {
		return flipContents;
	}

	public boolean isFullScreenRequired() {
		return false;
	}

	public boolean isMultiBufferAvailable() {
		return false;
	}

	public static final class FlipContents {
		public static final FlipContents UNDEFINED = new FlipContents();
		public static final FlipContents BACKGROUND = new FlipContents();
		public static final FlipContents PRIOR = new FlipContents();
		public static final FlipContents COPIED = new FlipContents();

		private FlipContents() {
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy