< prev index next >

src/demo/share/jfc/J2Ddemo/java2d/demos/Transforms/TransformAnim.java

Print this page

        

*** 1,8 **** /* * ! * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * --- 1,8 ---- /* * ! * Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: *
*** 105,124 **** gi.fillOval(0,0,9,9); texturePaint = new TexturePaint(bi,new Rectangle(0,0,10,10)); } private static BasicStroke bs = new BasicStroke(6); ! private static Font fonts[] = { new Font(Font.SERIF, PLAIN, 48), new Font(Font.SERIF, BOLD|ITALIC, 24), new Font(Font.MONOSPACED, BOLD, 36), new Font(Font.SANS_SERIF, BOLD|ITALIC, 64), new Font(Font.SANS_SERIF, PLAIN, 52)}; ! private static String strings[] = { "Transformation", "Rotate", "Translate", "Shear", "Scale" }; ! private static String imgs[] = { "duke.png" }; ! private static Paint paints[] = { RED, BLUE, texturePaint, GREEN, MAGENTA, ORANGE, PINK, CYAN, new Color(0, 255, 0, 128), new Color(0, 0, 255, 128), YELLOW, LIGHT_GRAY, WHITE}; private List<ObjData> objDatas = new ArrayList<ObjData>(13); private int numShapes, numStrings, numImages; --- 105,124 ---- gi.fillOval(0,0,9,9); texturePaint = new TexturePaint(bi,new Rectangle(0,0,10,10)); } private static BasicStroke bs = new BasicStroke(6); ! private static Font[] fonts = { new Font(Font.SERIF, PLAIN, 48), new Font(Font.SERIF, BOLD|ITALIC, 24), new Font(Font.MONOSPACED, BOLD, 36), new Font(Font.SANS_SERIF, BOLD|ITALIC, 64), new Font(Font.SANS_SERIF, PLAIN, 52)}; ! private static String[] strings = { "Transformation", "Rotate", "Translate", "Shear", "Scale" }; ! private static String[] imgs = { "duke.png" }; ! private static Paint[] paints = { RED, BLUE, texturePaint, GREEN, MAGENTA, ORANGE, PINK, CYAN, new Color(0, 255, 0, 128), new Color(0, 0, 255, 128), YELLOW, LIGHT_GRAY, WHITE}; private List<ObjData> objDatas = new ArrayList<ObjData>(13); private int numShapes, numStrings, numImages;
*** 251,261 **** } } } ! public static void main(String argv[]) { createDemoFrame(new TransformAnim()); } static class TextData extends Object { --- 251,261 ---- } } } ! public static void main(String[] argv) { createDemoFrame(new TransformAnim()); } static class TextData extends Object {
< prev index next >