com.aspose.diagram

  • java.lang.Object
    • com.aspose.diagram.Margin
public class Margin 
extends java.lang.Object

Specifies the margin.

Constructor Summary
Margin(doublevalue, intunit)
Constructor.
 
Property Getters/Setters Summary
intgetUnit()
void
setUnit(intvalue)
           Represents a unit of measure. The default is DP. The value of the property is MeasureConst integer constant.
doublegetValue()
void
setValue(doublevalue)
           Specifies the margin.
 
Method Summary
booleanequals(java.lang.Object value)
Are objects equal.
inthashCode()
Serves as a hash function for a particular type.
 

    • Constructor Detail

      • Margin

        public Margin(double value, int unit)
        Constructor.
        Parameters:
        value -
        unit - A MeasureConst value.
    • Property Getters/Setters Detail

      • getUnit/setUnit

        public int getUnit() / public void setUnit(int value)
        
        Represents a unit of measure. The default is DP. The value of the property is MeasureConst integer constant.
      • getValue/setValue

        public double getValue() / public void setValue(double value)
        
        Specifies the margin.
    • Method Detail

      • equals

        public boolean equals(java.lang.Object value)
        Are objects equal.
        Parameters:
        value -
        Returns:
      • hashCode

        public int hashCode()
        Serves as a hash function for a particular type.
        Returns: