Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
ChartEvent.java
Package: Weka-3-2.rar [view]
Upload User: rhdiban
Upload Date: 2013-08-09
Package Size: 15085k
Code Size: 4k
Category:
Windows Develop
Development Platform:
Java
- /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /* * ChartEvent.java * Copyright (C) 2002 Mark Hall * */ package weka.gui.beans;
- import java.util.EventObject;
- import java.util.Vector;
- /**
- * Event encapsulating info for plotting a data point on the StripChart
- *
- * @author <a href="mailto:mhall@cs.waikato.ac.nz">Mark Hall</a>
- * @version $Revision: 1.1 $
- */
- public class ChartEvent extends EventObject {
- private Vector m_legendText;
- private double m_max;
- private double m_min;
- private boolean m_reset;
- /**
- * Y values of the data points
- */
- private double [] m_dataPoint;
- /**
- * Creates a new <code>ChartEvent</code> instance.
- *
- * @param source the source of the event
- * @param legendText a vector of strings to display in the legend
- * @param min minimum y value
- * @param max maximum y value
- * @param dataPoint an array of y values to plot
- * @param reset true if display is to be reset
- */
- public ChartEvent(Object source, Vector legendText, double min, double max,
- double [] dataPoint, boolean reset) {
- super(source);
- m_legendText = legendText;
- m_max = max;
- m_min = min;
- m_dataPoint = dataPoint;
- m_reset = reset;
- }
- /**
- * Creates a new <code>ChartEvent</code> instance.
- *
- * @param source the source of the event
- */
- public ChartEvent(Object source) {
- super(source);
- }
- /**
- * Get the legend text vector
- *
- * @return a <code>Vector</code> value
- */
- public Vector getLegendText() {
- return m_legendText;
- }
- /**
- * Set the legend text vector
- *
- * @param lt a <code>Vector</code> value
- */
- public void setLegendText(Vector lt) {
- m_legendText = lt;
- }
- /**
- * Get the min y value
- *
- * @return a <code>double</code> value
- */
- public double getMin() {
- return m_min;
- }
- /**
- * Set the min y value
- *
- * @param m a <code>double</code> value
- */
- public void setMin(double m) {
- m_min = m;
- }
- /**
- * Get the max y value
- *
- * @return a <code>double</code> value
- */
- public double getMax() {
- return m_max;
- }
- /**
- * Set the max y value
- *
- * @param m a <code>double</code> value
- */
- public void setMax(double m) {
- m_max = m;
- }
- /**
- * Get the data point
- *
- * @return a <code>double[]</code> value
- */
- public double [] getDataPoint() {
- return m_dataPoint;
- }
- /**
- * Set the data point
- *
- * @param dp a <code>double[]</code> value
- */
- public void setDataPoint(double [] dp) {
- m_dataPoint = dp;
- }
- /**
- * Set the reset flag
- *
- * @param reset a <code>boolean</code> value
- */
- public void setReset(boolean reset) {
- m_reset = reset;
- }
- /**
- * get the value of the reset flag
- *
- * @return a <code>boolean</code> value
- */
- public boolean getReset() {
- return m_reset;
- }
- }