src/share/classes/sun/awt/AWTAccessor.java

Print this page




 136 
 137         /** Get the size of the security warning.
 138          */
 139         Dimension getSecurityWarningSize(Window w);
 140 
 141         /**
 142          * Set the size of the security warning.
 143          */
 144         void setSecurityWarningSize(Window w, int width, int height);
 145 
 146         /** Set the position of the security warning.
 147          */
 148         void setSecurityWarningPosition(Window w, Point2D point,
 149                 float alignmentX, float alignmentY);
 150 
 151         /** Request to recalculate the new position of the security warning for
 152          * the given window size/location as reported by the native system.
 153          */
 154         Point2D calculateSecurityWarningPosition(Window window,
 155                 double x, double y, double w, double h);




 156     }
 157 
 158     /*
 159      * An accessor for the AWTEvent class.
 160      */
 161     public interface AWTEventAccessor {
 162         /*
 163          *
 164          * Sets the flag on this AWTEvent indicating that it was
 165          * generated by the system.
 166          */
 167         void setSystemGenerated(AWTEvent ev);
 168         /*
 169          *
 170          * Indicates whether this AWTEvent was generated by the system.
 171          */
 172         boolean isSystemGenerated(AWTEvent ev);
 173     }
 174 
 175     /*




 136 
 137         /** Get the size of the security warning.
 138          */
 139         Dimension getSecurityWarningSize(Window w);
 140 
 141         /**
 142          * Set the size of the security warning.
 143          */
 144         void setSecurityWarningSize(Window w, int width, int height);
 145 
 146         /** Set the position of the security warning.
 147          */
 148         void setSecurityWarningPosition(Window w, Point2D point,
 149                 float alignmentX, float alignmentY);
 150 
 151         /** Request to recalculate the new position of the security warning for
 152          * the given window size/location as reported by the native system.
 153          */
 154         Point2D calculateSecurityWarningPosition(Window window,
 155                 double x, double y, double w, double h);
 156         /**
 157          * Indicates whether the window has been packed via pack().
 158          */
 159         boolean isPacked(Window window);
 160     }
 161 
 162     /*
 163      * An accessor for the AWTEvent class.
 164      */
 165     public interface AWTEventAccessor {
 166         /*
 167          *
 168          * Sets the flag on this AWTEvent indicating that it was
 169          * generated by the system.
 170          */
 171         void setSystemGenerated(AWTEvent ev);
 172         /*
 173          *
 174          * Indicates whether this AWTEvent was generated by the system.
 175          */
 176         boolean isSystemGenerated(AWTEvent ev);
 177     }
 178 
 179     /*