| Package | org.aswing.geom |
| Class | public class IntDimension |
| Method | Defined by | ||
|---|---|---|---|
|
IntDimension(width:int = 0, height:int = 0)
Creates a dimension.
| IntDimension | ||
|
change(deltaW:int, deltaH:int):IntDimension
modify the size and return itself.
| IntDimension | ||
|
changedSize(deltaW:int, deltaH:int):IntDimension
return a new size with this size with a change.
| IntDimension | ||
|
Duplicates current instance.
| IntDimension | ||
|
Combines current and specified dimensions by getting max sizes
and puts result into itself.
| IntDimension | ||
|
Combines current and specified dimensions by getting max sizes
and returns new IntDimension object
| IntDimension | ||
|
[static]
Create a big dimension for component.
| IntDimension | ||
|
Decreases the size by s and return its self(
this). | IntDimension | ||
|
equals(o:Object):Boolean
Returns whether or not the passing o is an same value IntDimension.
| IntDimension | ||
|
getBounds(x:int = 0, y:int = 0):IntRectangle
return a new bounds with this size with a location.
| IntDimension | ||
|
Increases the size by s and return its self(
this). | IntDimension | ||
|
setSize(dim:IntDimension):void
Sets the size as same as the dim.
| IntDimension | ||
|
setSizeWH(width:int, height:int):void
Sets the size with width and height.
| IntDimension | ||
|
toString():String
| IntDimension | ||
| height | property |
public var height:int = 0
| width | property |
public var width:int = 0
| IntDimension | () | constructor |
public function IntDimension(width:int = 0, height:int = 0)Creates a dimension.
Parameterswidth:int (default = 0) |
|
height:int (default = 0) |
| change | () | method |
public function change(deltaW:int, deltaH:int):IntDimensionmodify the size and return itself.
ParametersdeltaW:int |
|
deltaH:int |
IntDimension |
| changedSize | () | method |
public function changedSize(deltaW:int, deltaH:int):IntDimensionreturn a new size with this size with a change.
ParametersdeltaW:int |
|
deltaH:int |
IntDimension |
| clone | () | method |
public function clone():IntDimensionDuplicates current instance.
ReturnsIntDimension —
copy of the current instance.
|
| combine | () | method |
public function combine(d:IntDimension):IntDimensionCombines current and specified dimensions by getting max sizes and puts result into itself.
Parametersd:IntDimension |
IntDimension —
the combined dimension itself.
|
| combineSize | () | method |
public function combineSize(d:IntDimension):IntDimensionCombines current and specified dimensions by getting max sizes and returns new IntDimension object
Parametersd:IntDimension |
IntDimension —
a new dimension with combined size.
|
| createBigDimension | () | method |
public static function createBigDimension():IntDimensionCreate a big dimension for component.
ReturnsIntDimension —
a IntDimension(100000, 100000)
|
| decreaseSize | () | method |
public function decreaseSize(s:IntDimension):IntDimension
Decreases the size by s and return its self(this).
s:IntDimension |
IntDimension —
this.
|
| equals | () | method |
public function equals(o:Object):BooleanReturns whether or not the passing o is an same value IntDimension.
Parameterso:Object |
Boolean |
| getBounds | () | method |
public function getBounds(x:int = 0, y:int = 0):IntRectanglereturn a new bounds with this size with a location.
Parametersx:int (default = 0) — the location x.
|
|
y:int (default = 0) |
IntRectangle —
the bounds.
|
| increaseSize | () | method |
public function increaseSize(s:IntDimension):IntDimension
Increases the size by s and return its self(this).
s:IntDimension |
IntDimension —
this.
|
| setSize | () | method |
public function setSize(dim:IntDimension):voidSets the size as same as the dim.
Parametersdim:IntDimension |
| setSizeWH | () | method |
public function setSizeWH(width:int, height:int):voidSets the size with width and height.
Parameterswidth:int |
|
height:int |
| toString | () | method |
public function toString():String
Returns
String |