charva.awt

Class Dimension

Implemented Interfaces:
Cloneable

public class Dimension
extends java.lang.Object
implements Cloneable

Encapsulates the width and height of a component in a single object.

Field Summary

int
height
int
width

Constructor Summary

Dimension()
Creates a new Dimension object with width and height = 0;
Dimension(Dimension dimension_)
Dimension(int width_, int height_)

Method Summary

Object
clone()
void
setSize(Dimension dimension_)
String
toString()

Field Details

height

public int height

width

public int width

Constructor Details

Dimension

public Dimension()
Creates a new Dimension object with width and height = 0;

Dimension

public Dimension(Dimension dimension_)

Dimension

public Dimension(int width_,
                 int height_)

Method Details

clone

public Object clone()

setSize

public void setSize(Dimension dimension_)

toString

public String toString()