|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.geom.YInsets
public final class YInsets
Double-precision immutable insets representation.
Field Summary | |
---|---|
double |
bottom
The inset from the bottom. |
double |
left
The inset from the left. |
double |
right
The inset from the right. |
double |
top
The inset from the top. |
Constructor Summary | |
---|---|
YInsets(double top,
double left,
double bottom,
double right)
Creates a new double-precision insets object with the specified insets. |
|
YInsets(java.awt.Insets insets)
Creates a new double-precision insets object with the specified insets. |
Method Summary | |
---|---|
static YInsets |
asYInsets(java.lang.Object data)
Returns a YInsets insets representing the specified data. |
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
|
java.awt.Insets |
toInsets()
Returns an integer-precision approximation of this insets object. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final double top
public final double left
public final double bottom
public final double right
Constructor Detail |
---|
public YInsets(double top, double left, double bottom, double right)
top
- the inset from the top.left
- the inset from the left.bottom
- the inset from the bottom.right
- the inset from the right.public YInsets(java.awt.Insets insets)
insets
- the top, left, bottom, and right insets.Method Detail |
---|
public java.awt.Insets toInsets()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static YInsets asYInsets(java.lang.Object data)
YInsets
insets representing the specified data.
If data
is an instance of YInsets
,
data
is returned.
If data
is an instance of Insets
, a new
YInsets
instance with the appropriate values is returned.
In all other cases, null
is returned.
data
- the data that has to be represented as YInsets
.
YInsets
insets representing the specified data.YInsets(java.awt.Insets)
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |