Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.image.painter
Class ImmInsets

java.lang.Object
  |
  +--oracle.cabo.image.painter.ImmInsets
All Implemented Interfaces:
java.lang.Cloneable

public class ImmInsets
extends java.lang.Object
implements java.lang.Cloneable

Immutable version of Insets.

See Also:
Insets

Field Summary
 int bottom
          The inset from the bottom.
 int left
          The inset from the left.
 int right
          The inset from the right.
 int top
          The inset from the top.
 
Constructor Summary
ImmInsets(java.awt.Insets insets)
          Constructs and initializes a new ImmInsets, copying the values from an insets object.
ImmInsets(int top, int left, int bottom, int right)
          Constructs and initializes a new ImmInsets with the specified top, left, bottom, and right insets.
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object obj)
          Checks whether two insets objects are equal.
static ImmInsets getEmptyInsets()
          Returns the shared, empty insets object.
 java.awt.Insets toInsets()
          Creates an Insets object based on this ImmInsets.
 java.lang.String toString()
          Returns a String object representing this Inset's values.
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

top

public final int top
The inset from the top.

left

public final int left
The inset from the left.

bottom

public final int bottom
The inset from the bottom.

right

public final int right
The inset from the right.
Constructor Detail

ImmInsets

public ImmInsets(int top,
                 int left,
                 int bottom,
                 int right)
Constructs and initializes a new ImmInsets with the specified top, left, bottom, and right insets.
Parameters:
top - the inset from the top
left - the inset from the left
bottom - the inset from the bottom
right - the inset from the right

ImmInsets

public ImmInsets(java.awt.Insets insets)
Constructs and initializes a new ImmInsets, copying the values from an insets object.
Parameters:
insets - the insets object
Method Detail

getEmptyInsets

public static ImmInsets getEmptyInsets()
Returns the shared, empty insets object.

toInsets

public java.awt.Insets toInsets()
Creates an Insets object based on this ImmInsets.

equals

public boolean equals(java.lang.Object obj)
Checks whether two insets objects are equal.
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Returns a String object representing this Inset's values.
Overrides:
toString in class java.lang.Object

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

Copyright © 2002,2003, Oracle. All Rights Reserved.