Package org.compiere.print.layout
Class Dimension2DImpl
- java.lang.Object
-
- java.awt.geom.Dimension2D
-
- org.compiere.print.layout.Dimension2DImpl
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Dimension2DImpl extends Dimension2D implements Serializable
2D Dimesnion Implementation- Version:
- $Id: Dimension2DImpl.java,v 1.3 2006/07/30 00:53:02 jjanke Exp $
- Author:
- Jorg Janke
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Dimension2DImpl()
Constructor 0/0Dimension2DImpl(double Width, double Height)
Constructor 0/0Dimension2DImpl(Dimension dim)
Constructor 0/0
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBelow(double dWidth, double dHeight)
Add Size below existingvoid
addBelow(Dimension dim)
Add Size below existingboolean
equals(Object obj)
Equalsdouble
getHeight()
Get Heightdouble
getWidth()
Get Widthint
hashCode()
Hash Codevoid
roundUp()
Round to next Int valuevoid
setSize(double Width, double Height)
Set Sizevoid
setSize(Dimension dim)
Set SizeString
toString()
String Representation-
Methods inherited from class java.awt.geom.Dimension2D
clone, setSize
-
-
-
-
Constructor Detail
-
Dimension2DImpl
public Dimension2DImpl()
Constructor 0/0
-
Dimension2DImpl
public Dimension2DImpl(Dimension dim)
Constructor 0/0- Parameters:
dim
- dimension
-
Dimension2DImpl
public Dimension2DImpl(double Width, double Height)
Constructor 0/0- Parameters:
Width
- widthHeight
- height
-
-
Method Detail
-
setSize
public void setSize(double Width, double Height)
Set Size- Specified by:
setSize
in classDimension2D
- Parameters:
Width
- widthHeight
- height
-
setSize
public void setSize(Dimension dim)
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
public void addBelow(Dimension dim)
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
-
equals
public boolean equals(Object obj)
Equals
-
-