src/share/classes/java/awt/Frame.java

Print this page




 248      */
 249     public static final int MAXIMIZED_HORIZ = 2;
 250 
 251     /**
 252      * This state bit indicates that frame is maximized in the
 253      * vertical direction.
 254      * @see #setExtendedState(int)
 255      * @see #getExtendedState
 256      * @since 1.4
 257      */
 258     public static final int MAXIMIZED_VERT = 4;
 259 
 260     /**
 261      * This state bit mask indicates that frame is fully maximized
 262      * (that is both horizontally and vertically).  It is just a
 263      * convenience alias for
 264      * <code>MAXIMIZED_VERT&nbsp;|&nbsp;MAXIMIZED_HORIZ</code>.
 265      *
 266      * <p>Note that the correct test for frame being fully maximized is
 267      * <pre>
 268      *     (state & Frame.MAXIMIZED_BOTH) == Frame.MAXIMIZED_BOTH
 269      * </pre>
 270      *
 271      * <p>To test is frame is maximized in <em>some</em> direction use
 272      * <pre>
 273      *     (state & Frame.MAXIMIZED_BOTH) != 0
 274      * </pre>
 275      *
 276      * @see #setExtendedState(int)
 277      * @see #getExtendedState
 278      * @since 1.4
 279      */
 280     public static final int MAXIMIZED_BOTH = MAXIMIZED_VERT | MAXIMIZED_HORIZ;
 281 
 282     /**
 283      * Maximized bounds for this frame.
 284      * @see     #setMaximizedBounds(Rectangle)
 285      * @see     #getMaximizedBounds
 286      * @serial
 287      * @since 1.4
 288      */
 289     Rectangle maximizedBounds;
 290 
 291 
 292     /**
 293      * This is the title of the frame.  It can be changed




 248      */
 249     public static final int MAXIMIZED_HORIZ = 2;
 250 
 251     /**
 252      * This state bit indicates that frame is maximized in the
 253      * vertical direction.
 254      * @see #setExtendedState(int)
 255      * @see #getExtendedState
 256      * @since 1.4
 257      */
 258     public static final int MAXIMIZED_VERT = 4;
 259 
 260     /**
 261      * This state bit mask indicates that frame is fully maximized
 262      * (that is both horizontally and vertically).  It is just a
 263      * convenience alias for
 264      * <code>MAXIMIZED_VERT&nbsp;|&nbsp;MAXIMIZED_HORIZ</code>.
 265      *
 266      * <p>Note that the correct test for frame being fully maximized is
 267      * <pre>
 268      *     (state &amp; Frame.MAXIMIZED_BOTH) == Frame.MAXIMIZED_BOTH
 269      * </pre>
 270      *
 271      * <p>To test is frame is maximized in <em>some</em> direction use
 272      * <pre>
 273      *     (state &amp; Frame.MAXIMIZED_BOTH) != 0
 274      * </pre>
 275      *
 276      * @see #setExtendedState(int)
 277      * @see #getExtendedState
 278      * @since 1.4
 279      */
 280     public static final int MAXIMIZED_BOTH = MAXIMIZED_VERT | MAXIMIZED_HORIZ;
 281 
 282     /**
 283      * Maximized bounds for this frame.
 284      * @see     #setMaximizedBounds(Rectangle)
 285      * @see     #getMaximizedBounds
 286      * @serial
 287      * @since 1.4
 288      */
 289     Rectangle maximizedBounds;
 290 
 291 
 292     /**
 293      * This is the title of the frame.  It can be changed