Top Description Fields Constructors Methods
com.sun.media.jfxmedia.track

public Class VideoResolution

extends Object
Class Inheritance

The dimensions of a video frame (width x height).

Field Summary

Modifier and TypeField and Description
public int
height

The video frame height.

public int
width

The video frame width.

Constructor Summary

AccessConstructor and Description
public
VideoResolution(int
The video width in pixels.
width
,
int
The video height in pixels.
height
)

Constructor.

Method Summary

Modifier and TypeMethod and Description
public int
getHeight()

Retrieve the video frame height.

public int
getWidth()

Retrieve the video frame width.

public String
toString()

Overrides java.lang.Object.toString.

Write the dimensions to a String.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

heightback to summary
public int height

The video frame height.

widthback to summary
public int width

The video frame width.

Constructor Detail

VideoResolutionback to summary
public VideoResolution(int width, int height)

Constructor.

Parameters
width:int

The video width in pixels.

height:int

The video height in pixels.

Exceptions
IllegalArgumentException:
if width or height is non-positive.

Method Detail

getHeightback to summary
public int getHeight()

Retrieve the video frame height.

getWidthback to summary
public int getWidth()

Retrieve the video frame width.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Write the dimensions to a String.

Annotations
@Override