Codota Logo
MonitorDevice.getViewport
Code IndexAdd Codota to your IDE (free)

How to use
getViewport
method
in
com.jogamp.newt.MonitorDevice

Best Java code snippets using com.jogamp.newt.MonitorDevice.getViewport (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: ch.unibas.cs.gravis/scalismo-native-stub

data[idx++] = monitorDevice.getSizeMM().getWidth();
data[idx++] = monitorDevice.getSizeMM().getHeight();
data[idx++] = monitorDevice.getViewport().getX();
data[idx++] = monitorDevice.getViewport().getY();
data[idx++] = monitorDevice.getViewport().getWidth();
data[idx++] = monitorDevice.getViewport().getHeight();
data[idx++] = monitorDevice.getViewportInWindowUnits().getX();
data[idx++] = monitorDevice.getViewportInWindowUnits().getY();
origin: org.jogamp.jogl/jogl-all-noawt

final MonitorDevice b = monitors.get(j);
if( !b.isClone() ) {
  final float coverage = b.getViewport().coverage( a.getViewport() );
  if( FloatUtil.isZero( 1f - coverage, FloatUtil.EPSILON ) ) {
    ((MonitorDeviceImpl)b).setIsClone(true);
origin: org.jogamp.jogl/jogl-all-noawt

data[idx++] = monitorDevice.getSizeMM().getWidth();
data[idx++] = monitorDevice.getSizeMM().getHeight();
data[idx++] = monitorDevice.getViewport().getX();
data[idx++] = monitorDevice.getViewport().getY();
data[idx++] = monitorDevice.getViewport().getWidth();
data[idx++] = monitorDevice.getViewport().getHeight();
data[idx++] = monitorDevice.getViewportInWindowUnits().getX();
data[idx++] = monitorDevice.getViewportInWindowUnits().getY();
origin: ch.unibas.cs.gravis/scalismo-native-stub

for(int i=monitors.size()-1; i>=0; i--) {
  if( null != viewport ) {
    final RectangleImmutable viewPU = monitors.get(i).getViewport();
    x1PU = Math.min(x1PU, viewPU.getX());
    x2PU = Math.max(x2PU, viewPU.getX() + viewPU.getWidth());
origin: org.jogamp.jogl/jogl-all-noawt

for(int i=monitors.size()-1; i>=0; i--) {
  if( null != viewport ) {
    final RectangleImmutable viewPU = monitors.get(i).getViewport();
    x1PU = Math.min(x1PU, viewPU.getX());
    x2PU = Math.max(x2PU, viewPU.getX() + viewPU.getWidth());
com.jogamp.newtMonitorDevicegetViewport

Javadoc

Returns the current RectangleImmutable portion of the rotated virtual Screen size in pixel units represented by this monitor, i.e. top-left origin and size.

Popular methods of MonitorDevice

  • getCurrentMode
    Returns the cached current MonitorMode w/o native query. The returned MonitorMode is element of the
  • getSupportedModes
    Returns a list of immutable MonitorModes supported by this monitor. The list is ordered in descendin
  • setCurrentMode
    Set the current com.jogamp.newt.MonitorMode.This method is lifecycle heavy [Window.html#lifecycleHea
  • getId
  • getOriginalMode
    Returns the immutable original com.jogamp.newt.MonitorMode, as used at NEWT initialization. The retu
  • getPixelsPerMM
    Returns the pixels per millimeter value according to the current MonitorMode's SurfaceSize#getResolu
  • getSizeMM
  • getViewportInWindowUnits
    Returns the RectangleImmutable portion of the rotated virtual Screen size in window units represente
  • isModeChangedByUs
    Returns true if the MonitorModehas been changed programmatic via this API only, otherwise false. Not
  • isOriginalMode
  • toString
  • unionOfViewports
    Calculates the union of the given monitor's #getViewport() in pixel- and window units.
  • toString,
  • unionOfViewports,
  • getScreen,
  • isClone,
  • isPrimary,
  • queryCurrentMode

Popular in Java

  • Finding current android device location
  • getSharedPreferences (Context)
  • requestLocationUpdates (LocationManager)
  • setContentView (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now