com.linksoft.chart
Class Chart

java.lang.Object
  extended bycom.linksoft.chart.Chart

public class Chart
extends java.lang.Object

Copyright (c) 2002-2005 LinkSoft Systems, Inc. All Rights Reserved


Field Summary
 boolean activateSelection
           
 boolean autoRebuild
           
 boolean autoSize
           
 double axisMargin
           
 FillStyle back
           
 ChartImage backImage
           
 LineStyle border
           
 double bottomMargin
           
protected  java.util.Vector chartHotAreas
           
 double currentValueX
           
 double currentValueY
           
 double currentValueY2
           
 int currentX
           
 int currentY
           
static int dnum
           
 boolean doubleBuffering
           
protected  java.util.Vector floatingObjects
           
 boolean fullXAxis
           
 java.lang.String htmlLinkTarget
           
 int layout
           
static int LAYOUT_LEGEND_BOTTOM
           
static int LAYOUT_LEGEND_RIGHT
           
static int LAYOUT_LEGEND_TOP
           
 double leftMargin
           
 Legend legend
           
 double legendMargin
           
 ChartLoader loader
           
protected static int MAX_SERIES
           
 long msecs
           
protected  java.util.Vector notes
           
static java.lang.String numberLocale
           
 int offsetX
           
 int offsetY
           
 Plotter[] plotters
           
 java.lang.String reloadFrom
           
 boolean repaintAll
           
 boolean repaintAlways
           
 double rightMargin
           
 double secondYAxisMargin
           
 ChartLabel selectedLabel
           
 DataSerie selectedSerie
           
 int selectedSeriePoint
           
 boolean showPosition
           
 boolean showTips
           
protected  java.util.Vector targetZones
           
 Title title
           
 double topMargin
           
 int virtualHeight
           
 int virtualWidth
           
 boolean withScroll
           
 Axis XAxis
           
 HAxisLabel XLabel
           
 Axis Y2Axis
           
 VAxisLabel Y2Label
           
 Axis YAxis
           
 VAxisLabel YLabel
           
 
Constructor Summary
protected Chart()
           
  Chart(Title t, Plotter p, Axis X, Axis Y)
           
 
Method Summary
 void addChartListener(ChartListener cl)
           
protected  void addFloationgObject(com.linksoft.chart.IFloatingObject obj)
           
 void addNote(java.lang.String note)
           
 void addPlotter(Plotter p)
           
 void addSerie(DataSerie s)
           
 void addTargetZone(TargetZone zone)
           
protected static int d()
           
 void dispose()
           
 int getHeight()
           
 java.lang.String getHTMLImageMap(java.lang.String name)
           
 TargetZone[] getTargetZones()
           
 int getWidth()
           
 void mouseClick()
           
 void mouseMoved(int eX, int eY)
           
 void paint(ChartGraphics pg)
           
protected  void paintTargetZones(ChartGraphics g)
           
protected  void placeFloatingObject(com.linksoft.chart.IFloatingObject ifloatingobject)
           
 void removeAllChartListener()
           
 void removeChartListener(ChartListener cl)
           
 void removeNotes()
           
 void removePlotters()
           
 void removeTargetZones()
           
protected  void resetChart(Title t, Plotter p, Axis X, Axis Y)
           
 void saveToFile(java.io.OutputStream os, java.lang.String psFormat)
           
 void saveToFile(java.lang.String psFile, java.lang.String psFormat)
           
 void setHeight(int h)
           
 void setMinimumSize(int w, int h)
           
 void setSize(int w, int h)
           
 void setWidth(int w)
           
 void setY2Scale(Axis a)
           
 void startUpdater()
           
 void stopUpdater()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LAYOUT_LEGEND_RIGHT

public static final int LAYOUT_LEGEND_RIGHT
See Also:
Constant Field Values

LAYOUT_LEGEND_TOP

public static final int LAYOUT_LEGEND_TOP
See Also:
Constant Field Values

LAYOUT_LEGEND_BOTTOM

public static final int LAYOUT_LEGEND_BOTTOM
See Also:
Constant Field Values

MAX_SERIES

protected static final int MAX_SERIES
See Also:
Constant Field Values

dnum

public static final int dnum
See Also:
Constant Field Values

numberLocale

public static java.lang.String numberLocale

YLabel

public VAxisLabel YLabel

Y2Label

public VAxisLabel Y2Label

XLabel

public HAxisLabel XLabel

legend

public Legend legend

XAxis

public Axis XAxis

YAxis

public Axis YAxis

Y2Axis

public Axis Y2Axis

title

public Title title

bottomMargin

public double bottomMargin

topMargin

public double topMargin

secondYAxisMargin

public double secondYAxisMargin

leftMargin

public double leftMargin

rightMargin

public double rightMargin

legendMargin

public double legendMargin

axisMargin

public double axisMargin

autoSize

public boolean autoSize

plotters

public Plotter[] plotters

layout

public int layout

back

public FillStyle back

border

public LineStyle border

offsetX

public int offsetX

offsetY

public int offsetY

backImage

public ChartImage backImage

doubleBuffering

public boolean doubleBuffering

virtualWidth

public int virtualWidth

virtualHeight

public int virtualHeight

withScroll

public boolean withScroll

repaintAll

public boolean repaintAll

repaintAlways

public boolean repaintAlways

fullXAxis

public boolean fullXAxis

selectedLabel

public ChartLabel selectedLabel

selectedSerie

public DataSerie selectedSerie

selectedSeriePoint

public int selectedSeriePoint

activateSelection

public boolean activateSelection

currentX

public int currentX

currentY

public int currentY

currentValueX

public double currentValueX

currentValueY

public double currentValueY

currentValueY2

public double currentValueY2

htmlLinkTarget

public java.lang.String htmlLinkTarget

showTips

public boolean showTips

showPosition

public boolean showPosition

loader

public ChartLoader loader

msecs

public long msecs

reloadFrom

public java.lang.String reloadFrom

autoRebuild

public boolean autoRebuild

targetZones

protected java.util.Vector targetZones

notes

protected java.util.Vector notes

chartHotAreas

protected java.util.Vector chartHotAreas

floatingObjects

protected java.util.Vector floatingObjects
Constructor Detail

Chart

public Chart(Title t,
             Plotter p,
             Axis X,
             Axis Y)

Chart

protected Chart()
Method Detail

resetChart

protected void resetChart(Title t,
                          Plotter p,
                          Axis X,
                          Axis Y)

d

protected static int d()

getWidth

public int getWidth()

getHeight

public int getHeight()

setMinimumSize

public void setMinimumSize(int w,
                           int h)

setSize

public void setSize(int w,
                    int h)

addTargetZone

public void addTargetZone(TargetZone zone)

removeTargetZones

public void removeTargetZones()

addNote

public void addNote(java.lang.String note)

removeNotes

public void removeNotes()

getTargetZones

public TargetZone[] getTargetZones()

paintTargetZones

protected void paintTargetZones(ChartGraphics g)

setWidth

public void setWidth(int w)

setHeight

public void setHeight(int h)

addChartListener

public void addChartListener(ChartListener cl)

removeChartListener

public void removeChartListener(ChartListener cl)

removeAllChartListener

public void removeAllChartListener()

addPlotter

public void addPlotter(Plotter p)

removePlotters

public void removePlotters()

setY2Scale

public void setY2Scale(Axis a)

addFloationgObject

protected void addFloationgObject(com.linksoft.chart.IFloatingObject obj)

placeFloatingObject

protected void placeFloatingObject(com.linksoft.chart.IFloatingObject ifloatingobject)

paint

public void paint(ChartGraphics pg)

addSerie

public void addSerie(DataSerie s)

dispose

public void dispose()

saveToFile

public void saveToFile(java.io.OutputStream os,
                       java.lang.String psFormat)
                throws java.lang.Exception
Throws:
java.lang.Exception

saveToFile

public void saveToFile(java.lang.String psFile,
                       java.lang.String psFormat)
                throws java.lang.Exception
Throws:
java.lang.Exception

mouseClick

public void mouseClick()

mouseMoved

public void mouseMoved(int eX,
                       int eY)

startUpdater

public void startUpdater()

stopUpdater

public void stopUpdater()

getHTMLImageMap

public java.lang.String getHTMLImageMap(java.lang.String name)