Class Size
- java.lang.Object
-
- com._1c.g5.v8.dt.form.layout.model.common.Size
-
public class Size extends Object
The size.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Size size)
Adds size.int
getCx()
Returns X-coordinate.int
getCy()
returns Y-coordinate.boolean
isEmpty()
Checks if the size is empty.boolean
isEquals(Size size)
Checks if the size is equals the given one.boolean
isGreater(Size size)
Checks if the size is greater than geven one.void
setCx(int cx)
Sets X-coordinate.void
setCy(int cy)
Sets Y-coordinate.String
toString()
-
-
-
Constructor Detail
-
Size
public Size()
Creates instance.
-
Size
public Size(long x, long y)
Creates instance.- Parameters:
x
- the X-coordinatey
- the Y-coordinate
-
Size
public Size(Size size)
Creates instance.- Parameters:
size
- , cannot benull
-
-
Method Detail
-
add
public void add(Size size)
Adds size.- Parameters:
size
- , cannot benull
-
isEquals
public boolean isEquals(Size size)
Checks if the size is equals the given one.- Parameters:
size
- , cannot benull
- Returns:
true
if the size is equals the given one
-
isGreater
public boolean isGreater(Size size)
Checks if the size is greater than geven one.- Parameters:
size
- , cannot benull
- Returns:
true
if the size is greater than geven one.
-
isEmpty
public boolean isEmpty()
Checks if the size is empty.- Returns:
true
if the size is empty.
-
getCx
public int getCx()
Returns X-coordinate.- Returns:
- X-coordinate.
-
setCx
public void setCx(int cx)
Sets X-coordinate.- Parameters:
cx
- - X-coordinate.
-
getCy
public int getCy()
returns Y-coordinate.- Returns:
- Y-coordinate
-
setCy
public void setCy(int cy)
Sets Y-coordinate.- Parameters:
cy
- - Y-coordinate.
-
-