|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.editor.view.spi.ViewInsets
public final class ViewInsets
Immutable analogy of the Insets
based
on floats.
Any view implementation may benefit from presence
of this class.
As the views of a same type should possibly use the same
insets there is a potential for sharing
of ViewInsets
instances.
Field Summary | |
---|---|
static ViewInsets |
ZERO_INSETS
|
Constructor Summary | |
---|---|
ViewInsets(float top,
float left,
float bottom,
float right)
Creates and initializes a new ViewInsets object with the
specified top, left, bottom, and right insets. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Checks whether two float insets objects are equal. |
float |
getBottom()
|
float |
getLeft()
|
float |
getLeftRight()
|
float |
getRight()
|
float |
getTop()
|
float |
getTopBottom()
|
int |
hashCode()
Returns the hash code for this Insets. |
String |
toString()
Returns a string representation of this Insets object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final ViewInsets ZERO_INSETS
Constructor Detail |
---|
public ViewInsets(float top, float left, float bottom, float right)
ViewInsets
object with the
specified top, left, bottom, and right insets.
top
- the inset from the top.left
- the inset from the left.bottom
- the inset from the bottom.right
- the inset from the right.Method Detail |
---|
public float getTop()
public float getLeft()
public float getBottom()
public float getRight()
public float getLeftRight()
public float getTopBottom()
public boolean equals(Object obj)
ViewInsets
are equal if the four float values
of the fields top
, left
,
bottom
, and right
are all equal.
true
if the two float insets are equal;
otherwise false
.public int hashCode()
public String toString()
Insets
object.
This method is intended to be used only for debugging purposes, and
the content and format of the returned string may vary between
implementations. The returned string may be empty but may not be
null
.
Insets
object.
|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |