File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed
src/net/matmas/epsgraphics Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ Features:
1010
1111Example usage:
1212
13- EPSGraphics2D g = new EPSGraphics2D();
13+ Graphics2D g = new EPSGraphics2D();
1414 g.drawString("Hello World!", 0, 0);
15- g .writeToFile(new File("helloworld.eps"));
15+ ((EPSGraphics2D) g) .writeToFile(new File("helloworld.eps"));
1616
1717
1818Code license: [ LGPLv3] ( http://www.gnu.org/copyleft/lesser.html )
Original file line number Diff line number Diff line change 1616 */
1717package net .matmas .epsgraphics ;
1818
19+ import java .awt .Graphics2D ;
1920import java .io .File ;
2021import java .io .FileNotFoundException ;
2122
2425 * @author Martin Riesz <riesz.martin at gmail.com>
2526 */
2627public class Main {
27-
28- public static void main ( String [] args ) throws FileNotFoundException {
29- EPSGraphics2D g = new EPSGraphics2D ( );
30- g . drawString ( "Hello World!" , 0 , 0 );
31- g .writeToFile (new File ("helloworld.eps" ));
32- }
28+ public static void main ( String [] args ) throws FileNotFoundException {
29+ Graphics2D g = new EPSGraphics2D ();
30+ g . drawString ( "Hello World!" , 0 , 0 );
31+
32+ (( EPSGraphics2D ) g ) .writeToFile (new File ("helloworld.eps" ));
33+ }
3334}
You can’t perform that action at this time.
0 commit comments