Margin

Inheritance: java.lang.Object

public class Margin

Specifies the margin.

Constructors

ConstructorDescription
Margin(double value, int unit)Constructor.

Methods

MethodDescription
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:

ParameterTypeDescription
valuedouble
unitint

equals(Object value)

public boolean equals(Object value)

Are objects equal.

Parameters:

ParameterTypeDescription
valuejava.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:

ParameterTypeDescription
valueint

setValue(double value)

public void setValue(double value)

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

Parameters:

ParameterTypeDescription
valuedouble

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int