Package totalcross.ui
Class Insets
- java.lang.Object
-
- totalcross.ui.Insets
-
public class Insets extends java.lang.ObjectUsed to define the gaps between the container and its child controls.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopyFrom(Insets other)Copy the insets from another Insets object.booleanequals(java.lang.Object obj)inthashCode()voidset(int top, int left, int bottom, int right)Sets the fields with the given values.
-
-
-
Constructor Detail
-
Insets
public Insets()
Creates a new Insets object.
-
Insets
public Insets(int top, int left, int bottom, int right)Creates and initializes a new Insets object 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.
-
-
Method Detail
-
set
public void set(int top, int left, int bottom, int right)Sets the fields with the given values.- Since:
- TotalCross 1.3
-
copyFrom
public void copyFrom(Insets other)
Copy the insets from another Insets object.- Parameters:
other- The other Insets object.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-