| Modifier and Type | Field and Description |
|---|---|
| private final SizeUnits | |
| private final double |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public SizeUnits | |
| public double | |
| public int | |
| public boolean | Returns: true if it is absolute, otherwise falseReturns whether or not this |
| public double | |
| public double | |
| pack-priv double | pixels(double multiplier)
If size is not an absolute size, return the product of multiplier and value. |
| public double | |
| pack-priv double | |
| pack-priv double | |
| public String |
| units | back to summary |
|---|---|
| private final SizeUnits units | |
| value | back to summary |
|---|---|
| private final double value | |
| Size | back to summary |
|---|---|
| public Size(double value, SizeUnits units) Constructs a
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getUnits | back to summary |
|---|---|
| public SizeUnits getUnits() Return the units.
| |
| getValue | back to summary |
|---|---|
| public double getValue() Returns the value.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isAbsolute | back to summary |
|---|---|
| public boolean isAbsolute() Returns whether or not this
| |
| pixels | back to summary |
|---|---|
| public double pixels(double multiplier, Font font) Converts this size into pixels.
| |
| pixels | back to summary |
|---|---|
| public double pixels(Font font) If size is not an absolute size, return the product of font size in pixels and value. Otherwise, return the absolute value.
| |
| pixels | back to summary |
|---|---|
| pack-priv double pixels(double multiplier) If size is not an absolute size, return the product of multiplier and value. Otherwise, return the absolute value. | |
| pixels | back to summary |
|---|---|
| public double pixels() A convenience method for calling
| |
| points | back to summary |
|---|---|
| pack-priv double points(Font font) Converts this size into Points units, a Point is 1/72 of a inch | |
| points | back to summary |
|---|---|
| pack-priv double points(double multiplier, Font font) Converts this size into points.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |