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 voidaddBelow(double dWidth, double dHeight)Add Size below existingvoidaddBelow(Dimension dim)Add Size below existingbooleanequals(Object obj)EqualsdoublegetHeight()Get HeightdoublegetWidth()Get WidthinthashCode()Hash CodevoidroundUp()Round to next Int valuevoidsetSize(double Width, double Height)Set SizevoidsetSize(Dimension dim)Set SizeStringtoString()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:
setSizein 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:
getWidthin classDimension2D- Returns:
- width
-
getHeight
public double getHeight()
Get Height- Specified by:
getHeightin classDimension2D- Returns:
- height
-
equals
public boolean equals(Object obj)
Equals
-
-