< prev index next >

src/java.desktop/share/classes/java/awt/event/PaintEvent.java

Print this page




  67     public static final int UPDATE = PAINT_FIRST + 1; //801
  68 
  69     /**
  70      * This is the rectangle that represents the area on the source
  71      * component that requires a repaint.
  72      * This rectangle should be non null.
  73      *
  74      * @serial
  75      * @see java.awt.Rectangle
  76      * @see #setUpdateRect(Rectangle)
  77      * @see #getUpdateRect()
  78      */
  79     Rectangle updateRect;
  80 
  81     /*
  82      * JDK 1.1 serialVersionUID
  83      */
  84     private static final long serialVersionUID = 1267492026433337593L;
  85 
  86     /**
  87      * Constructs a <code>PaintEvent</code> object with the specified
  88      * source component and type.
  89      * <p> This method throws an
  90      * <code>IllegalArgumentException</code> if <code>source</code>
  91      * is <code>null</code>.
  92      *
  93      * @param source     The object where the event originated
  94      * @param id           The integer that identifies the event type.
  95      *                     For information on allowable values, see
  96      *                     the class description for {@link PaintEvent}
  97      * @param updateRect The rectangle area which needs to be repainted
  98      * @throws IllegalArgumentException if <code>source</code> is null
  99      * @see #getSource()
 100      * @see #getID()
 101      * @see #getUpdateRect()
 102      */
 103     public PaintEvent(Component source, int id, Rectangle updateRect) {
 104         super(source, id);
 105         this.updateRect = updateRect;
 106     }
 107 
 108     /**
 109      * Returns the rectangle representing the area which needs to be
 110      * repainted in response to this event.
 111      * @return the rectangle representing the area which needs to be
 112      * repainted in response to this event
 113      */
 114     public Rectangle getUpdateRect() {
 115         return updateRect;
 116     }
 117 
 118     /**




  67     public static final int UPDATE = PAINT_FIRST + 1; //801
  68 
  69     /**
  70      * This is the rectangle that represents the area on the source
  71      * component that requires a repaint.
  72      * This rectangle should be non null.
  73      *
  74      * @serial
  75      * @see java.awt.Rectangle
  76      * @see #setUpdateRect(Rectangle)
  77      * @see #getUpdateRect()
  78      */
  79     Rectangle updateRect;
  80 
  81     /*
  82      * JDK 1.1 serialVersionUID
  83      */
  84     private static final long serialVersionUID = 1267492026433337593L;
  85 
  86     /**
  87      * Constructs a {@code PaintEvent} object with the specified
  88      * source component and type.
  89      * <p> This method throws an
  90      * {@code IllegalArgumentException} if {@code source}
  91      * is {@code null}.
  92      *
  93      * @param source     The object where the event originated
  94      * @param id           The integer that identifies the event type.
  95      *                     For information on allowable values, see
  96      *                     the class description for {@link PaintEvent}
  97      * @param updateRect The rectangle area which needs to be repainted
  98      * @throws IllegalArgumentException if {@code source} is null
  99      * @see #getSource()
 100      * @see #getID()
 101      * @see #getUpdateRect()
 102      */
 103     public PaintEvent(Component source, int id, Rectangle updateRect) {
 104         super(source, id);
 105         this.updateRect = updateRect;
 106     }
 107 
 108     /**
 109      * Returns the rectangle representing the area which needs to be
 110      * repainted in response to this event.
 111      * @return the rectangle representing the area which needs to be
 112      * repainted in response to this event
 113      */
 114     public Rectangle getUpdateRect() {
 115         return updateRect;
 116     }
 117 
 118     /**


< prev index next >