Example #1
0
 /** Overrides <code>Graphics.clipRect</code>. */
 public void clipRect(int x, int y, int width, int height) {
   graphics.clipRect(x, y, width, height);
   if (debugLog()) {
     info()
         .log(
             toShortString()
                 + " Setting clipRect: "
                 + (new Rectangle(x, y, width, height))
                 + " New clipRect: "
                 + graphics.getClip());
   }
 }
Example #2
0
 /** Overrides <code>Graphics.setClip</code>. */
 public void setClip(Shape clip) {
   graphics.setClip(clip);
   if (debugLog()) {
     info().log(toShortString() + " Setting new clipRect: " + graphics.getClip());
   }
 }
Example #3
0
 /** Overrides <code>Graphics.getClip</code>. */
 public Shape getClip() {
   return graphics.getClip();
 }
Example #4
0
 /** Overrides <code>Graphics.setClip</code>. */
 public void setClip(int x, int y, int width, int height) {
   graphics.setClip(x, y, width, height);
   if (debugLog()) {
     info().log(toShortString() + " Setting new clipRect: " + graphics.getClip());
   }
 }