Margin

Inheritance: java.lang.Object

public class Margin

Specifies the margin.

Constructors

Constructor Description
Margin(double value, int unit) Constructor.

Methods

Method Description
equals(Object value) Are objects equal.
getClass()
getUnit() Represents a unit of measure.
getValue() Specifies the margin.
hashCode() Serves as a hash function for a particular type.
notify()
notifyAll()
setUnit(int value) For the description of this property, please see getUnit()
setValue(double value) For the description of this property, please see getValue()
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

Margin(double value, int unit)

public Margin(double value, int unit)

Constructor.

Parameters:

Parameter Type Description
value double
unit int

equals(Object value)

public boolean equals(Object value)

Are objects equal.

Parameters:

Parameter Type Description
value java.lang.Object

Returns: boolean -

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getUnit()

public int getUnit()

Represents a unit of measure. The default is DP.

Returns: int

getValue()

public double getValue()

Specifies the margin.

Returns: double

hashCode()

public int hashCode()

Serves as a hash function for a particular type.

Returns: int -

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setUnit(int value)

public void setUnit(int value)

For the description of this property, please see getUnit()

Parameters:

Parameter Type Description
value int

setValue(double value)

public void setValue(double value)

For the description of this property, please see getValue()

Parameters:

Parameter Type Description
value double

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

Parameter Type Description
arg0 long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

Parameter Type Description
arg0 long
arg1 int