Documentation of 'sgtplot.beans.Margin' Java class
Margin
sgtplot.beans

Class Margin

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable


    public class Margin
    extends java.lang.Object
    implements java.lang.Cloneable, java.io.Serializable
    Margin class.
    Since:
    3.0
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      float bottom
      Bottom margin.
      float left
      Left margin.
      float right
      Right margin.
      float top
      Top margin.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Margin()
      Default constructor.
      Margin(float top, float left, float bottom, float right)
      Margin constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      Margin copy()
      Copy Margin object.
      float getBottom()
      Get bottom margin
      float getLeft()
      Get left margin.
      float getRight()
      Get right margin.
      float getTop()
      Get top margin.
      void setBottom(float bottom)
      Set bottom margin.
      void setLeft(float left)
      Set left margin.
      void setRight(float right)
      Set right margin.
      void setTop(float top)
      Set top margin.
      java.lang.String toString()
      Get string representation of Margin.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • left

        public float left
        Left margin.
      • right

        public float right
        Right margin.
      • top

        public float top
        Top margin.
      • bottom

        public float bottom
        Bottom margin.
    • Constructor Detail

      • Margin

        public Margin()
        Default constructor. Sets all margin components to 0.0.
      • Margin

        public Margin(float top,
                      float left,
                      float bottom,
                      float right)
        Margin constructor.
        Parameters:
        top - top margin
        left - left margin
        bottom - bottom margin
        right - right margin
    • Method Detail

      • copy

        public Margin copy()
        Copy Margin object.
        Returns:
        Margin
      • setTop

        public void setTop(float top)
        Set top margin.
        Parameters:
        top - top margin
      • getTop

        public float getTop()
        Get top margin.
        Returns:
        top margin
      • setBottom

        public void setBottom(float bottom)
        Set bottom margin.
        Parameters:
        bottom - bottom margin
      • getBottom

        public float getBottom()
        Get bottom margin
        Returns:
        bottom margin
      • setLeft

        public void setLeft(float left)
        Set left margin.
        Parameters:
        left - left margin
      • getLeft

        public float getLeft()
        Get left margin.
        Returns:
        left margin
      • setRight

        public void setRight(float right)
        Set right margin.
        Parameters:
        right - right margin
      • getRight

        public float getRight()
        Get right margin.
        Returns:
        right margin
      • toString

        public java.lang.String toString()
        Get string representation of Margin.
        Overrides:
        toString in class java.lang.Object
        Returns:
        string

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.