hydroScalingAPI.util.plot
Class XYPlot

java.lang.Object
  extended by hydroScalingAPI.util.plot.XYPlot

public class XYPlot
extends java.lang.Object


Field Summary
protected  hydroScalingAPI.util.plot.XYAxis axis
           
protected  java.util.Vector colors
           
protected  java.util.Vector dataColors
           
protected  java.util.Vector dataDoubles
           
protected  java.util.Vector dataFaltantes
           
protected  boolean dataFromTags
           
protected  java.util.Vector dataLabels
           
protected  java.util.Vector dataSymbolSizes
           
protected  java.util.Vector dataTypes
           
protected  int first_x
           
protected  int first_y
           
protected  boolean firstColumnLabelsFlag
           
protected  java.awt.Graphics gx
           
protected  int h
           
protected  hydroScalingAPI.util.plot.XYLegend legend
           
protected  hydroScalingAPI.util.plot.XYLine line
           
protected  java.util.Vector lines
           
protected  int numberOfPlots
           
protected  java.lang.String oldString
           
protected  int oldx
           
protected  int oldy
           
protected  java.awt.Component parent
           
protected  boolean shiftWasSelected
           
protected  java.util.Vector symbolColors
           
protected  int tipo
           
protected  int w
           
protected  boolean xLabelsVerticalFlag
           
protected  double xmaximum
           
protected  double xminimum
           
protected  java.awt.Font xyFont
           
protected  double ymaximum
           
protected  double yminimum
           
 
Constructor Summary
XYPlot(java.awt.Component p)
           
XYPlot(java.awt.Component p, double[][] datosx, double[][] datosy, java.lang.String[] leg, java.lang.String Title, java.lang.String xLabel, java.lang.String yLabel, double falt)
           
XYPlot(java.awt.Component p, double[][] datosx, double[][] datosy, java.lang.String[] leg, java.lang.String Title, java.lang.String xLabel, java.lang.String yLabel, double falt, java.awt.Color c, int t)
           
XYPlot(java.awt.Component p, double[][] datos, java.lang.String Title, java.lang.String xLabel, java.lang.String yLabel, double falt)
           
XYPlot(java.awt.Component p, double[][] datos, java.lang.String Title, java.lang.String xLabel, java.lang.String yLabel, double falt, java.awt.Color c, int t)
           
XYPlot(java.awt.Component p, double[] xdatos, double[] ydatos, java.lang.String Title, java.lang.String xLabel, java.lang.String yLabel, double falt)
           
XYPlot(java.awt.Component p, double[] xdatos, double[] ydatos, java.lang.String Title, java.lang.String xLabel, java.lang.String yLabel, double falt, java.awt.Color c, int t)
           
XYPlot(java.awt.Component p, double[] datos, java.lang.String Title, java.lang.String xLabel, java.lang.String yLabel, double falt)
           
XYPlot(java.awt.Component p, double[] datos, java.lang.String Title, java.lang.String xLabel, java.lang.String yLabel, double falt, java.awt.Color c, int t)
           
XYPlot(java.awt.Component p, java.lang.String Title, java.lang.String xLabel, java.lang.String yLabel)
           
 
Method Summary
 void addDoubles(double[][] d)
           
 void addDoubles(double[][] d, java.awt.Color c)
           
 void addDoubles(double[][] d, java.awt.Color c, int tipo, double faltante)
           
 void addDoubles(double[][] d, java.awt.Color c, int type, java.lang.String label, int dSymbolSize, java.awt.Color sColor, double faltante)
           
 void addDoubles(double[][] d, int tipo)
           
 void axisColor(java.awt.Color color)
           
 void axisFontSize(int i)
           
 void backgroundColor(java.awt.Color color)
           
 void create()
           
 void firstColumnLabels(boolean flag)
           
 void graphics(java.awt.Graphics g)
           
 void gridColor(java.awt.Color color)
           
 void gridX(boolean flag)
           
 void gridY(boolean flag)
           
 boolean keyDown(java.awt.Event event, int i)
           
 void labelColor(java.awt.Color color)
           
 void labelXFontSize(int i)
           
 void labelYFontSize(int i)
           
 void legendFontSize(int i)
           
 void legendIncrement(int i)
           
 void legendShow(boolean flag)
           
 void legendX(int i)
           
 void legendY(int i)
           
 void MouseDragged(java.awt.event.MouseEvent event)
           
 void MouseEntered(java.awt.event.MouseEvent event)
           
 void MouseExited(java.awt.event.MouseEvent event)
           
 void MouseMoved(java.awt.event.MouseEvent event)
           
 void MousePressed(java.awt.event.MouseEvent event)
           
 void MouseReleased(java.awt.event.MouseEvent event)
           
 int numberOfPlots()
           
 void numberOfPlots(int i)
           
 void openAxis(boolean flag)
           
 void paint(java.awt.Graphics g)
           
 void setXmax(double max)
           
 void setXmin(double min)
           
 void setXRange(double min, double max)
           
 void setYmax(double max)
           
 void setYmin(double min)
           
 void setYRange(double min, double max)
           
 void title(java.lang.String s)
           
 void titleFontSize(int i)
           
 void xLabelsVertical(boolean flag)
           
 void xTitle(java.lang.String s)
           
 void yTitle(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

w

protected int w

h

protected int h

parent

protected java.awt.Component parent

axis

protected hydroScalingAPI.util.plot.XYAxis axis

line

protected hydroScalingAPI.util.plot.XYLine line

legend

protected hydroScalingAPI.util.plot.XYLegend legend

numberOfPlots

protected int numberOfPlots

first_x

protected int first_x

first_y

protected int first_y

oldx

protected int oldx

oldy

protected int oldy

gx

protected java.awt.Graphics gx

lines

protected java.util.Vector lines

colors

protected java.util.Vector colors

dataDoubles

protected java.util.Vector dataDoubles

dataFaltantes

protected java.util.Vector dataFaltantes

dataColors

protected java.util.Vector dataColors

dataLabels

protected java.util.Vector dataLabels

symbolColors

protected java.util.Vector symbolColors

dataTypes

protected java.util.Vector dataTypes

dataSymbolSizes

protected java.util.Vector dataSymbolSizes

xminimum

protected double xminimum

xmaximum

protected double xmaximum

yminimum

protected double yminimum

ymaximum

protected double ymaximum

oldString

protected java.lang.String oldString

xyFont

protected java.awt.Font xyFont

shiftWasSelected

protected boolean shiftWasSelected

dataFromTags

protected boolean dataFromTags

firstColumnLabelsFlag

protected boolean firstColumnLabelsFlag

xLabelsVerticalFlag

protected boolean xLabelsVerticalFlag

tipo

protected int tipo
Constructor Detail

XYPlot

public XYPlot(java.awt.Component p,
              double[][] datos,
              java.lang.String Title,
              java.lang.String xLabel,
              java.lang.String yLabel,
              double falt,
              java.awt.Color c,
              int t)

XYPlot

public XYPlot(java.awt.Component p,
              java.lang.String Title,
              java.lang.String xLabel,
              java.lang.String yLabel)

XYPlot

public XYPlot(java.awt.Component p,
              double[][] datos,
              java.lang.String Title,
              java.lang.String xLabel,
              java.lang.String yLabel,
              double falt)

XYPlot

public XYPlot(java.awt.Component p,
              double[][] datosx,
              double[][] datosy,
              java.lang.String[] leg,
              java.lang.String Title,
              java.lang.String xLabel,
              java.lang.String yLabel,
              double falt,
              java.awt.Color c,
              int t)

XYPlot

public XYPlot(java.awt.Component p,
              double[][] datosx,
              double[][] datosy,
              java.lang.String[] leg,
              java.lang.String Title,
              java.lang.String xLabel,
              java.lang.String yLabel,
              double falt)

XYPlot

public XYPlot(java.awt.Component p,
              double[] xdatos,
              double[] ydatos,
              java.lang.String Title,
              java.lang.String xLabel,
              java.lang.String yLabel,
              double falt)

XYPlot

public XYPlot(java.awt.Component p,
              double[] xdatos,
              double[] ydatos,
              java.lang.String Title,
              java.lang.String xLabel,
              java.lang.String yLabel,
              double falt,
              java.awt.Color c,
              int t)

XYPlot

public XYPlot(java.awt.Component p,
              double[] datos,
              java.lang.String Title,
              java.lang.String xLabel,
              java.lang.String yLabel,
              double falt,
              java.awt.Color c,
              int t)

XYPlot

public XYPlot(java.awt.Component p,
              double[] datos,
              java.lang.String Title,
              java.lang.String xLabel,
              java.lang.String yLabel,
              double falt)

XYPlot

public XYPlot(java.awt.Component p)
Method Detail

create

public void create()

paint

public void paint(java.awt.Graphics g)

MouseMoved

public void MouseMoved(java.awt.event.MouseEvent event)

MouseDragged

public void MouseDragged(java.awt.event.MouseEvent event)

MouseExited

public void MouseExited(java.awt.event.MouseEvent event)

MouseEntered

public void MouseEntered(java.awt.event.MouseEvent event)

MousePressed

public void MousePressed(java.awt.event.MouseEvent event)

MouseReleased

public void MouseReleased(java.awt.event.MouseEvent event)

keyDown

public boolean keyDown(java.awt.Event event,
                       int i)

labelXFontSize

public void labelXFontSize(int i)

labelYFontSize

public void labelYFontSize(int i)

titleFontSize

public void titleFontSize(int i)

axisFontSize

public void axisFontSize(int i)

labelColor

public void labelColor(java.awt.Color color)

axisColor

public void axisColor(java.awt.Color color)

gridColor

public void gridColor(java.awt.Color color)

backgroundColor

public void backgroundColor(java.awt.Color color)

openAxis

public void openAxis(boolean flag)

gridX

public void gridX(boolean flag)

gridY

public void gridY(boolean flag)

legendShow

public void legendShow(boolean flag)

title

public void title(java.lang.String s)

xTitle

public void xTitle(java.lang.String s)

yTitle

public void yTitle(java.lang.String s)

legendX

public void legendX(int i)

legendY

public void legendY(int i)

legendIncrement

public void legendIncrement(int i)

legendFontSize

public void legendFontSize(int i)

numberOfPlots

public void numberOfPlots(int i)

numberOfPlots

public int numberOfPlots()

graphics

public void graphics(java.awt.Graphics g)

addDoubles

public void addDoubles(double[][] d,
                       java.awt.Color c,
                       int type,
                       java.lang.String label,
                       int dSymbolSize,
                       java.awt.Color sColor,
                       double faltante)

addDoubles

public void addDoubles(double[][] d)

addDoubles

public void addDoubles(double[][] d,
                       java.awt.Color c)

addDoubles

public void addDoubles(double[][] d,
                       java.awt.Color c,
                       int tipo,
                       double faltante)

addDoubles

public void addDoubles(double[][] d,
                       int tipo)

setXRange

public void setXRange(double min,
                      double max)

setXmax

public void setXmax(double max)

setXmin

public void setXmin(double min)

setYmax

public void setYmax(double max)

setYmin

public void setYmin(double min)

setYRange

public void setYRange(double min,
                      double max)

firstColumnLabels

public void firstColumnLabels(boolean flag)

xLabelsVertical

public void xLabelsVertical(boolean flag)


CUENCAS was initially developed by Ricardo Mantilla at the University of Colorado under the supervision of Dr. Vijay K. Gupta. We wish to recognize the support from the National Science Fundation.