org.simBio.sim.analyzer.graph.simple
Interface ICanvas

All Known Implementing Classes:
RateGraph, RateGraph_KA, Viewer

public interface ICanvas

draw axis and plot point to the canvas
SwingもしくはSWTに依存せず画面描画するためのインターフェイス。

Author:
Nobuaki Sarai

Method Summary
 void drawBar(int x, int y, int width, int height, int c)
           
 void drawPoint(int x, int y, int size, int c)
           
 double getScaleHeight()
          scaling factor = reference height (0.01 mm) / physical height (pixel)
 double getScaleWidth()
          scaling factor = reference width (0.01 mm) / physical width (pixel)
 void plotAxises(Axis xAxis, Axis yAxis)
          plot axses and grids
 void reset()
          get graphics and clear.
 

Method Detail

reset

void reset()
get graphics and clear.


plotAxises

void plotAxises(Axis xAxis,
                Axis yAxis)
plot axses and grids

Parameters:
xAxis - x axis
yAxis - y axis

drawPoint

void drawPoint(int x,
               int y,
               int size,
               int c)
Parameters:
x -
y -
size -
c -

drawBar

void drawBar(int x,
             int y,
             int width,
             int height,
             int c)

getScaleWidth

double getScaleWidth()
scaling factor = reference width (0.01 mm) / physical width (pixel)

Returns:
reference width / physical width

getScaleHeight

double getScaleHeight()
scaling factor = reference height (0.01 mm) / physical height (pixel)

Returns:
reference height / physical height


Copyright © 2002-2008 Cell/Biodinamics simulation project. All Rights Reserved.