Package hec.gfx2d
Class Margin
java.lang.Object
hec.gfx2d.Margin
This class represents the Margins that are on any printable page. All margin units are int
inches. To convert to device units i.e. PageFormat imageable/width units the user needs to
multiply by 72. Java uses units that are 1/72 inches
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected double
protected double
protected double
protected double
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
double
double
double
void
void
void
setBottomMargin
(double propValue) void
setLeftMargin
(double propValue) void
setMargins
(double top, double left, double bottom, double right) void
setRightMargin
(double propValue) void
setTopMargin
(double propValue)
-
Field Details
-
leftMargin
protected double leftMargin -
rightMargin
protected double rightMargin -
bottomMargin
protected double bottomMargin -
topMargin
protected double topMargin
-
-
Constructor Details
-
Margin
public Margin(double top, double left, double bottom, double right)
-
-
Method Details
-
getLeftMargin
public double getLeftMargin() -
setMargins
public void setMargins(double top, double left, double bottom, double right) -
setLeftMargin
public void setLeftMargin(double propValue) -
getRightMargin
public double getRightMargin() -
setRightMargin
public void setRightMargin(double propValue) -
getBottomMargin
public double getBottomMargin() -
setBottomMargin
public void setBottomMargin(double propValue) -
getTopMargin
public double getTopMargin() -
setTopMargin
public void setTopMargin(double propValue) -
saveToPreferences
public void saveToPreferences() -
loadFromPreferences
public void loadFromPreferences()
-