public class DecimalExtent extends Extent
DecimalExtent
objects are immutable once constructed.
This object should only be used when an extent requires a fractional (decimal) part, in all other
cases the plain Extent object should be used.| Constructor and Description |
|---|
DecimalExtent(double decimalValue)
Creates a new
DecimalExtent with pixel units. |
DecimalExtent(double decimalValue,
int units)
Creates a new
DecimalExtent. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
double |
getDecimalValue()
Returns the decimal value of the extent.
|
int |
toMm()
Returns the value of the extent in millimeters.
|
int |
toPoint()
Returns the value of the extent in points.
|
java.lang.String |
toString()
Returns a string describing the state of the Extent.
|
public DecimalExtent(double decimalValue)
DecimalExtent with pixel units.decimalValue - the value of the extent in pixelspublic DecimalExtent(double decimalValue,
int units)
DecimalExtent.decimalValue - the value of the extentunits - the units of the value, one of the following constants:
PC: PixelsPERCENT: Percent (of size of containing
component)PT: PointsCM: CentimetersMM: MillimetersIN: InchesEM: Ems (height of 'M' character)EX: Exs (height of 'x' character)PC: Picaspublic boolean equals(java.lang.Object o)
public double getDecimalValue()
public int toMm()
ExtenttoMm in class ExtentExtent.toMm()public int toPoint()
ExtenttoPoint in class ExtentExtent.toPoint()