View Javadoc
1   /*
2    * Licensed under the GPL License. You may not use this file except in compliance with the License.
3    * You may obtain a copy of the License at
4    *
5    *   https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
6    *
7    * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
8    * WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
9    * PURPOSE.
10   */
11  
12  /* ===========================================================
13   * JFreeChart : a free chart library for the Java(tm) platform
14   * ===========================================================
15   *
16   * (C) Copyright 2000-2016, by Object Refinery Limited and Contributors.
17   *
18   * Project Info:  http://www.jfree.org/jfreechart/index.html
19   *
20   * This library is free software; you can redistribute it and/or modify it
21   * under the terms of the GNU Lesser General Public License as published by
22   * the Free Software Foundation; either version 2.1 of the License, or
23   * (at your option) any later version.
24   *
25   * This library is distributed in the hope that it will be useful, but
26   * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
27   * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
28   * License for more details.
29   *
30   * You should have received a copy of the GNU Lesser General Public
31   * License along with this library; if not, write to the Free Software
32   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
33   * USA.
34   *
35   * [Oracle and Java are registered trademarks of Oracle and/or its affiliates.
36   * Other names may be trademarks of their respective owners.]
37   *
38   * -------------
39   * Effect3D.java
40   * -------------
41   * (C) Copyright 2002-2008, by Object Refinery Limited.
42   *
43   * Original Author:  David Gilbert (for Object Refinery Limited);
44   * Contributor(s):   -;
45   *
46   * Changes
47   * -------
48   * 05-Nov-2002 : Version 1 (DG);
49   * 14-Nov-2002 : Modified to have independent x and y offsets (DG);
50   * 15-Sep-2019 : Copied from original Jfreechart as code obsoleted and necessary for visuals in Psi Probe
51   *               without extra rework (JWL);
52   *
53   */
54  package psiprobe.jfreechart;
55  
56  /**
57   * An interface that should be implemented by renderers that use a 3D effect. This allows the axes
58   * to mirror the same effect by querying the renderer.
59   */
60  public interface Effect3D {
61  
62    /**
63     * Returns the x-offset (in Java2D units) for the 3D effect.
64     *
65     * @return The offset.
66     */
67    double getXOffset();
68  
69    /**
70     * Returns the y-offset (in Java2D units) for the 3D effect.
71     *
72     * @return The offset.
73     */
74    double getYOffset();
75  }