public class VideoDimensions
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private int |
height
The height of the video
|
private int |
width
The width of the video
|
| Constructor and Description |
|---|
VideoDimensions()
Default constructor for VideoDimensions.
|
VideoDimensions(int width,
int height)
Constructs VideoDimensions with width and height.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getHeight()
Gets the height of the video.
|
int |
getWidth()
Gets the width of the video.
|
void |
setHeight(int height)
Sets the height of the video.
|
void |
setWidth(int width)
Sets the width of the video.
|
java.lang.String |
toString() |
private int width
private int height
public VideoDimensions()
public VideoDimensions(int width,
int height)
width - The width of the videoheight - The height of the videopublic int getWidth()
public void setWidth(int width)
width - The width of the videopublic int getHeight()
public void setHeight(int height)
height - The height of the videopublic java.lang.String toString()
toString in class java.lang.Object