Package org.compiere.print.layout
Class Dimension2DImpl
java.lang.Object
java.awt.geom.Dimension2D
org.compiere.print.layout.Dimension2DImpl
- All Implemented Interfaces:
Serializable
,Cloneable
2D Dimension Implementation
- Version:
- $Id: Dimension2DImpl.java,v 1.3 2006/07/30 00:53:02 jjanke Exp $
- Author:
- Jorg Janke
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConstructor 0/0Dimension2DImpl
(double Width, double Height) Constructor 0/0Dimension2DImpl
(Dimension dim) Constructor 0/0 -
Method Summary
Modifier and TypeMethodDescriptionvoid
addBelow
(double dWidth, double dHeight) Add Size below existingvoid
Add Size below existingboolean
Equalsdouble
Get Heightdouble
getWidth()
Get Widthint
hashCode()
Hash Codevoid
roundUp()
Round to next Int valuevoid
setSize
(double Width, double Height) Set Sizevoid
Set SizetoString()
String RepresentationMethods inherited from class java.awt.geom.Dimension2D
clone, setSize
-
Field Details
-
width
public double widthWidth -
height
public double heightHeight
-
-
Constructor Details
-
Dimension2DImpl
public Dimension2DImpl()Constructor 0/0 -
Dimension2DImpl
Constructor 0/0- Parameters:
dim
- dimension
-
Dimension2DImpl
public Dimension2DImpl(double Width, double Height) Constructor 0/0- Parameters:
Width
- widthHeight
- height
-
-
Method Details
-
setSize
public void setSize(double Width, double Height) Set Size- Specified by:
setSize
in classDimension2D
- Parameters:
Width
- widthHeight
- height
-
setSize
Set Size- Parameters:
dim
- dimension
-
addBelow
public void addBelow(double dWidth, double dHeight) Add Size below existing- Parameters:
dWidth
- width to increase if belowdHeight
- height to add
-
addBelow
Add Size below existing- Parameters:
dim
- add dimension
-
roundUp
public void roundUp()Round to next Int value -
getWidth
public double getWidth()Get Width- Specified by:
getWidth
in classDimension2D
- Returns:
- width
-
getHeight
public double getHeight()Get Height- Specified by:
getHeight
in classDimension2D
- Returns:
- height
-
hashCode
public int hashCode()Hash Code -
equals
Equals -
toString
String Representation
-