com.openfin.desktop.MonitorDetails Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openfin-desktop-java-adapter Show documentation
Show all versions of openfin-desktop-java-adapter Show documentation
The Java API for OpenFin Runtime
package com.openfin.desktop;
import org.json.JSONObject;
public class MonitorDetails extends JsonBean {
public MonitorDetails() {
}
public MonitorDetails(JSONObject json) {
super(json);
}
public String getDeviceId() {
return this.getString("deviceId");
}
public String getName() {
return this.getString("name");
}
public double getDeviceScaleFactor() {
return this.getDoubleValue("deviceScaleFactor", 1);
}
public boolean isDisplayDeviceActive() {
return this.getBooleanValue("displayDeviceActive");
}
}