|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.page.JCUnit.Margins
Stores the sizes of the margins around a figure or area. Margin widths are stored as double-precision numbers along with the units of measurement in which they are specified.
Field Summary | |
double |
bottom
The widths of the bottom margin in the given units. |
double |
left
The widths of the left margin in the given units. |
double |
right
The widths of the right margin in the given units. |
double |
top
The widths of the top margin in the given units. |
com.klg.jclass.page.JCUnit |
units
JCUnit object representing the units of linear measurement. |
Constructor Summary | |
JCUnit.Margins()
Creates a set of zero margins using the current units. |
|
JCUnit.Margins(double top,
double bottom,
double left,
double right)
Creates the margins for a region given the distances in current units. |
|
JCUnit.Margins(com.klg.jclass.page.JCUnit units)
Creates a set of zero margins using the specified units. |
|
JCUnit.Margins(com.klg.jclass.page.JCUnit units,
double top,
double bottom,
double left,
double right)
Creates the margins for a region given the distances and the units. |
Method Summary | |
void |
assign(JCUnit.Margins newValue)
Sets these margins equal to the given ones. |
Object |
clone()
Creates a clone of this Margins. |
boolean |
equals(Object obj)
Compares another Object to this Margins. |
JCUnit.Measure |
getBottom()
Returns the bottom margin width as a measure. |
JCUnit.Measure |
getLeft()
Returns the left margin width as a measure. |
JCUnit.Measure |
getRight()
Returns the right margin width as a measure. |
JCUnit.Measure |
getTop()
Returns the top margin width as a measure. |
int |
hashCode()
Creates a hash that generates the same value depending on the property values. |
void |
setBottom(JCUnit.Measure newBottom)
Sets the bottom margin width given a measure. |
void |
setLeft(JCUnit.Measure newLeft)
Sets the left margin width given a measure. |
void |
setRight(JCUnit.Measure newRight)
Sets the right margin width given a measure. |
void |
setTop(JCUnit.Measure newTop)
Sets the top margin width given a measure. |
String |
toString()
Returns the margin positions and units as a String. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public com.klg.jclass.page.JCUnit units
JCUnit
object representing the units of linear measurement.
public double top
public double bottom
public double left
public double right
Constructor Detail |
public JCUnit.Margins()
public JCUnit.Margins(com.klg.jclass.page.JCUnit units)
units
- the units the margin distances are measured inpublic JCUnit.Margins(double top, double bottom, double left, double right)
top
- the width of the top marginbottom
- the width of the bottom marginleft
- the width of the left marginright
- the width of the right marginpublic JCUnit.Margins(com.klg.jclass.page.JCUnit units, double top, double bottom, double left, double right)
units
- the units the margin distances are measured intop
- the width of the top marginbottom
- the width of the bottom marginleft
- the width of the left marginright
- the width of the right marginMethod Detail |
public Object clone()
clone
in class Object
public JCUnit.Measure getTop()
public void setTop(JCUnit.Measure newTop)
newTop
- the width to set for the top marginpublic JCUnit.Measure getBottom()
public void setBottom(JCUnit.Measure newBottom)
newBottom
- the width to set for the bottom marginpublic JCUnit.Measure getLeft()
public void setLeft(JCUnit.Measure newLeft)
newLeft
- the width to set for the left marginpublic JCUnit.Measure getRight()
public void setRight(JCUnit.Measure newRight)
newRight
- the width to set for the right marginpublic void assign(JCUnit.Margins newValue)
newValue
- the values to assign to these marginspublic int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
obj
- an object to compare to this Margins object for equality
true
if both objects are Margins and the size of the Margins
are identical (independent of units)public String toString()
toString
in class Object
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |