nvidiadpmsstate.java

来自「纯java操作系统jnode,安装简单和操作简单的个人使用的Java操作系统」· Java 代码 · 共 52 行

JAVA
52
字号
/*
 * $Id: NVidiaDpmsState.java,v 1.1 2003/11/25 11:51:40 epr Exp $
 */
package org.jnode.driver.video.nvidia;

/**
 * @author Ewout Prangsma (epr@users.sourceforge.net)
 */
public class NVidiaDpmsState {
	
	public static final NVidiaDpmsState OFF = new NVidiaDpmsState(false, false, false);
	
	private final boolean display;
	private final boolean hsync;
	private final boolean vsync;
	
	public NVidiaDpmsState(boolean display, boolean hsync, boolean vsync) {
		this.display = display;
		this.hsync = hsync;
		this.vsync = vsync;
	}
	
	/**
	 * @return True if the display is enabled, false otherwise
	 */
	public final boolean isDisplay() {
		return this.display;
	}

	/**
	 * @return True if the hsync is enabled, false otherwise
	 */
	public final boolean isHsync() {
		return this.hsync;
	}

	/**
	 * @return True if the vsync is enabled, false otherwise
	 */
	public final boolean isVsync() {
		return this.vsync;
	}
	
	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return "DPMS[display:" + display + ", hsync:" + hsync + ", vsync:" + vsync + "]";
	}

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?