src/demo/share/jfc/J2Ddemo/java2d/demos/Clipping/Areas.java
changeset 52252 de9486d74a74
parent 50146 0bb0e464ee76
equal deleted inserted replaced
52251:b43c2aa001a5 52252:de9486d74a74
     1 /*
     1 /*
     2  *
     2  *
     3  * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
     3  * Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
     4  *
     4  *
     5  * Redistribution and use in source and binary forms, with or without
     5  * Redistribution and use in source and binary forms, with or without
     6  * modification, are permitted provided that the following conditions
     6  * modification, are permitted provided that the following conditions
     7  * are met:
     7  * are met:
     8  *
     8  *
   139         g2.fill(area);
   139         g2.fill(area);
   140         g2.setColor(RED);
   140         g2.setColor(RED);
   141         g2.draw(area);
   141         g2.draw(area);
   142     }
   142     }
   143 
   143 
   144     public static void main(String argv[]) {
   144     public static void main(String[] argv) {
   145         createDemoFrame(new Areas());
   145         createDemoFrame(new Areas());
   146     }
   146     }
   147 
   147 
   148 
   148 
   149     static final class DemoControls extends CustomControls implements
   149     static final class DemoControls extends CustomControls implements