public class Size extends Object implements Outlineable
 For heap optimization the size is stored as a short and therefore is limited between -32768
 and 32767.
| Constructor and Description | 
|---|
Size(int width,
    int height)
Creates a size specifying its values. 
 | 
Size(Size size)
Creates a size from another size. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addOutline(int left,
          int top,
          int right,
          int bottom)
Adds the given outline. 
 | 
int | 
getHeight()
Gets the height. 
 | 
int | 
getWidth()
Gets the width. 
 | 
void | 
removeOutline(int left,
             int top,
             int right,
             int bottom)
Removes the given outline. 
 | 
void | 
setHeight(int height)
Sets the height. 
 | 
void | 
setSize(int width,
       int height)
Sets the size. 
 | 
void | 
setWidth(int width)
Sets the width. 
 | 
public Size(int width,
            int height)
width - the width to set.height - the height to set.public Size(Size size)
size - the other size.public void addOutline(int left,
                       int top,
                       int right,
                       int bottom)
OutlineableaddOutline in interface Outlineableleft - the left side thickness of the outline.top - the top side thickness of the outline.right - the right side thickness of the outline.bottom - the bottom side thickness of the outline.public int getHeight()
public int getWidth()
public void removeOutline(int left,
                          int top,
                          int right,
                          int bottom)
OutlineableremoveOutline in interface Outlineableleft - the left side thickness of the outline.top - the top side thickness of the outline.right - the right side thickness of the outline.bottom - the bottom side thickness of the outline.public void setHeight(int height)
height - the height to set.public void setSize(int width,
                    int height)
width - the width to set.height - the height to set.public void setWidth(int width)
width - the width to set.