Class Insets2D

    • Field Summary

      Fields 
      Modifier and Type Field Description
      double bottom  
      double left  
      double right  
      double top  
    • Constructor Summary

      Constructors 
      Constructor Description
      Insets2D​(double top, double left, double bottom, double right)
      Creates and initializes a new Insets object with the specified top, left, bottom, and right insets.
    • Field Detail

      • top

        public double top
      • left

        public double left
      • bottom

        public double bottom
      • right

        public double right
    • Constructor Detail

      • Insets2D

        public Insets2D​(double top,
                        double left,
                        double bottom,
                        double 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​(double top,
                        double left,
                        double bottom,
                        double right)
        Set top, left, bottom, and right to the specified values
        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.
        Since:
        1.5
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object