001/* A point in a plot. 002 003 @Copyright (c) 1997-2014 The Regents of the University of California. 004 All rights reserved. 005 006 Permission is hereby granted, without written agreement and without 007 license or royalty fees, to use, copy, modify, and distribute this 008 software and its documentation for any purpose, provided that the 009 above copyright notice and the following two paragraphs appear in all 010 copies of this software. 011 012 IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY 013 FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES 014 ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF 015 THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF 016 SUCH DAMAGE. 017 018 THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES, 019 INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 020 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE 021 PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE UNIVERSITY OF 022 CALIFORNIA HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, 023 ENHANCEMENTS, OR MODIFICATIONS. 024 025 PT_COPYRIGHT_VERSION_2 026 COPYRIGHTENDKEY 027 */ 028package ptolemy.plot; 029 030import java.io.Serializable; 031 032/////////////////////////////////////////////////////////////////// 033//// PlotPoint 034 035/** 036 A simple structure for storing a plot point. 037 @author Edward A. Lee 038 @version $Id$ 039 @since Ptolemy II 0.2 040 @Pt.ProposedRating Yellow (cxh) 041 @Pt.AcceptedRating Yellow (cxh) 042 */ 043@SuppressWarnings("serial") 044public class PlotPoint implements Serializable { 045 /////////////////////////////////////////////////////////////////// 046 //// public variables //// 047 048 /** True if this point is connected to the previous point by a line. */ 049 public boolean connected = false; 050 051 /** True if the yLowEB and yHighEB fields are valid. */ 052 public boolean errorBar = false; 053 054 /** Original value of x before wrapping. */ 055 public double originalx; 056 057 /** X value after wrapping (if any). */ 058 public double x; 059 060 /** Y value. */ 061 public double y; 062 063 /** d^n y/dx^n for n > 0. */ 064 public double[] derivatives; 065 066 /** Error bar Y low value. */ 067 public double yLowEB; 068 069 /** Error bar Y low value. */ 070 public double yHighEB; 071}