Stay organized with collections Save and categorize content based on your preferences.
Defines the physical parameters of a screen to be used with a GVR-compatible viewer.
Public Constructors Public Methods boolean equals(
Objectother)
Compares this instance with the specified object and indicates if they are equal.
float int getHeight()
Returns the screen height in pixels.
float int getWidth()
Returns the screen width in pixels.
float void void setHeight(int height)
Sets the screen height in pixels.
void setWidth(int width)
Sets the screen width in pixels.
String toString()
Returns a string containing a concise, human-readable description of this object.
Inherited Methods From class java.lang.Object boolean final Class<?>getClass()
inthashCode()
final voidnotify()
final voidnotifyAll()
StringtoString()
final voidwait(long arg0, int arg1)
final voidwait(long arg0)
final voidwait()
Public Constructors public ScreenParams (Display display)Initializes parameters to default values.
public ScreenParams (ScreenParams params)Creates a copy of an existing screen params object.
Parameters params Screen parameters to copy. Public Methods public boolean equals (Object other)Compares this instance with the specified object and indicates if they are equal.
Parameters other The object to compare this instance with. Returnstrue
if the objects are equal, false
otherwise.Returns the display border size.
ReturnsReturns the screen height in pixels.
ReturnsReturns the screen height in meters.
ReturnsReturns the screen width in pixels.
ReturnsReturns the screen width in meters.
ReturnsSize of the display's border around the screen.
Offset in meters from the bottom side of the inserted display to the bottom of the screen. Normally a small border of a few millimeters height when the display is in landscape position.
Parameters displayBorderSize The display border size in meters. public void setHeight (int height)Sets the screen height in pixels.
Parameters height The screen width in pixels. public void setWidth (int width)Sets the screen width in pixels.
Parameters width The screen size in pixels. public String toString ()Returns a string containing a concise, human-readable description of this object.
ReturnsAll rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-09 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-09 UTC."],[[["`ScreenParams` defines the physical characteristics of a screen for use with GVR-compatible viewers, including dimensions and border size."],["It provides methods to get and set screen dimensions in both pixels and meters, as well as the border size in meters."],["You can create a `ScreenParams` instance using an Android `Display` object or by copying an existing `ScreenParams` object."],["`ScreenParams` includes helper methods like `equals()` for comparison and `toString()` for a human-readable representation."]]],["`ScreenParams` defines physical screen parameters for GVR-compatible viewers. Key actions include initializing `ScreenParams` objects, either with default values from a `Display` or by copying existing parameters. Methods allow retrieving and setting the screen's width, height, and border size in both pixels and meters. Additional functionality includes comparing instances for equality using the `equals` method and generating a descriptive string using `toString`.\n"]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4