CESE 1.4.7

com.simulogic.dataview.plots
Class AbstractPlot

java.lang.Object
  extended by com.simulogic.dataview.plots.AbstractPlot
Direct Known Subclasses:
ColumnPlot, HistogramPlot, LinePlot, SymbolPlot

public abstract class AbstractPlot
extends java.lang.Object

Abstract plot is a template for all the different plots


Field Summary
protected  double distance
          Distance between the two points on the plot (in user space)
protected  double hotspot
          Hotspot range for selecting plots by clicking
 
Constructor Summary
AbstractPlot()
          Creates new AbstractPlot
 
Method Summary
abstract  AbstractPlot createPlot()
          Returns new instance of the plot
 double getDistance()
          Getter for property distance.
abstract  java.lang.String getName()
          Returns plot name.
abstract  javax.swing.Icon getSmallIcon()
          Returns small icon for plot.
abstract  boolean isChannelPoint(double x, double y, DataChannel xChannel, DataChannel yChannel, java.awt.geom.AffineTransform transform)
          Determines whether point is located within a plot
abstract  void plotChannel(java.awt.Graphics2D g2, DataChannel xChannel, DataChannel yChannel, double xMin, double xMax, java.awt.geom.AffineTransform transform)
          Plots content of the single channel
 void setDistance(double distance)
          Setter for property distance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

distance

protected double distance
Distance between the two points on the plot (in user space)


hotspot

protected double hotspot
Hotspot range for selecting plots by clicking

Constructor Detail

AbstractPlot

public AbstractPlot()
Creates new AbstractPlot

Method Detail

plotChannel

public abstract void plotChannel(java.awt.Graphics2D g2,
                                 DataChannel xChannel,
                                 DataChannel yChannel,
                                 double xMin,
                                 double xMax,
                                 java.awt.geom.AffineTransform transform)
Plots content of the single channel

Parameters:
g2 - graphics
xChannel - channel containing independent variable values
yChannel - channel containing dependent variable values
xMin - minimal value for plotting range
xMax - maximal value for plotting range
transform - plot transform

isChannelPoint

public abstract boolean isChannelPoint(double x,
                                       double y,
                                       DataChannel xChannel,
                                       DataChannel yChannel,
                                       java.awt.geom.AffineTransform transform)
Determines whether point is located within a plot

Parameters:
x - point x coordinate
y - point y coordinate
xChannel - channel containing independent variable values
yChannel - channel containing dependent variable values
transform - plot transform
Returns:
true if point belongs to channel

createPlot

public abstract AbstractPlot createPlot()
Returns new instance of the plot

Returns:
new instance of the current plot

getDistance

public double getDistance()
Getter for property distance.

Returns:
Value of property distance.

setDistance

public void setDistance(double distance)
Setter for property distance.

Parameters:
distance - New value of property distance.

getName

public abstract java.lang.String getName()
Returns plot name.

Returns:
plot name.

getSmallIcon

public abstract javax.swing.Icon getSmallIcon()
Returns small icon for plot.

Returns:
mall icon for plot.

CESE 1.4.7

Copyright (c) 1999 - 2007 Cell Electrophysiology Simulation Environment (CESE). All rights reserved.