< prev index next >
src/demo/share/jfc/SwingSet2/BezierAnimationPanel.java
Print this page
*** 1,8 ****
/*
*
! * Copyright (c) 2007, 2010, 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:
*
*** 62,85 ****
GradientPaint gradient = null;
public final int NUMPTS = 6;
! float animpts[] = new float[NUMPTS * 2];
! float deltas[] = new float[NUMPTS * 2];
! float staticpts[] = {
50.0f, 0.0f,
150.0f, 0.0f,
200.0f, 75.0f,
150.0f, 150.0f,
50.0f, 150.0f,
0.0f, 75.0f,
};
! float movepts[] = new float[staticpts.length];
BufferedImage img;
Rectangle bounds = null;
--- 62,85 ----
GradientPaint gradient = null;
public final int NUMPTS = 6;
! float[] animpts = new float[NUMPTS * 2];
! float[] deltas = new float[NUMPTS * 2];
! float[] staticpts = {
50.0f, 0.0f,
150.0f, 0.0f,
200.0f, 75.0f,
150.0f, 150.0f,
50.0f, 150.0f,
0.0f, 75.0f,
};
! float[] movepts = new float[staticpts.length];
BufferedImage img;
Rectangle bounds = null;
< prev index next >