public final class Insets2D extends java.lang.Object implements Duplicatable
Insets which works on doubles instead of ints 
       (这是 Insets 的替代品,它适用于双精度数而不是整数) 
      | Modifier and Type | Field and Description | 
|---|---|
double |  
           bottom 
            
              The inset from the bottom. 
             (从底部开始的插图。) 
               |  
          
double |  
           left 
            
              The inset from the left. 
             (左边的插图。) 
               |  
          
double |  
           right 
            
              The inset from the right. 
             (右边的插图。) 
               |  
          
double |  
           top 
            
              The inset from the top. 
             (顶部的插图。) 
               |  
          
| Constructor and 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. 
             |  
          
| Modifier and Type | Method and Description | 
|---|---|
Insets2D |  
           copy() 
            
              Create a copy of this object. 
             (创建此对象的副本。) 
               |  
          
boolean |  
           equals(java.lang.Object obj) 
            
              Checks whether two insets objects are equal. 
             (检查两个 insets 对象是否相等。) 
               |  
          
int |  
           hashCode() 
            
              Returns the hash code for this Insets. 
             (返回此 Insets 的哈希码。) 
               |  
          
void |  
           set(double top, double left, double bottom, double right) 
            
              Set top, left, bottom, and right to the specified values 
             (将顶部、左侧、底部和右侧设置为指定值) 
               |  
          
java.lang.String |  
           toString() 
            
              Returns a string representation of this 
               Insets object. 
             (返回此 Insets 对象的字符串表示形式。) 
             |  
          
public double top
public double left
public double bottom
public double right
public Insets2D(double top,
                double left,
                double bottom,
                double right) 
          Insets object with the specified top, left, bottom, and right insets. 
           (使用指定的顶部、左侧、底部和右侧插入创建并初始化一个新的插入对象。) 
          top - the inset from the top. 
            (top - 从顶部开始的插图。) 
           left - the inset from the left. 
            (left - 左边的插图。) 
           bottom - the inset from the bottom. 
            (bottom - 从底部开始的插图。) 
           right - the inset from the right. 
            (右 - 右边的插图。) 
           public void set(double top,
                double left,
                double bottom,
                double right) 
          top - the inset from the top. 
            (top - 从顶部开始的插图。) 
           left - the inset from the left. 
            (left - 左边的插图。) 
           bottom - the inset from the bottom. 
            (bottom - 从底部开始的插图。) 
           right - the inset from the right. 
            (右 - 右边的插图。) 
           public boolean equals(java.lang.Object obj)
Insets are equal if the four integer values of the fields 
           top, 
           left, 
           bottom, and 
           right are all equal. 
           (检查两个 insets 对象是否相等。如果字段 top、left、bottom 和 right 的四个整数值都相等,则两个 Insets 实例相等。) 
          equals in class  
            java.lang.Object 
           true if the two insets are equal; otherwise 
            false. 
            (如果两个插图相等,则为 true;否则为假。) 
           public int hashCode()
hashCode in class  
            java.lang.Object 
           public java.lang.String toString()
Insets object. This method is intended to be used only for debugging purposes, and the content and format of the returned string may vary between implementations. The returned string may be empty but may not be 
           null. 
           (返回此 Insets 对象的字符串表示形式。此方法仅用于调试目的,返回字符串的内容和格式可能因实现而异。返回的字符串可能为空但不能为空。) 
          toString in class  
            java.lang.Object 
           Insets object. 
            (此 Insets 对象的字符串表示形式。) 
           public Insets2D copy()
copy in interface  
            Duplicatable 
            (复制到界面 Duplicatable) 
           Insets2D object. 
            (此 Insets2D 对象的副本。) 
           Copyright 2021 The Apache Software Foundation or its licensors, as applicable.