Rio Project 4.2 API Documentation



org.rioproject.watch
Interface CalculableViewable

All Known Implementing Classes:
CalculableCPUView, CalculableDiskSpaceView, CalculableMemoryPoolView, CalculableMemoryView, CalculableSystemMemoryView, CounterCalculableView, DefaultCalculableView, ResponseTimeCalculableView, ThresholdCalculableView

public interface CalculableViewable

Interface defining semantics for viewing a Calculable record


Nested Class Summary
static class CalculableViewable.PlottedCalculable
          Data structure that holds as properties the the Calculable and the Point it is plotted at
 
Method Summary
 CalculableViewable.PlottedCalculable getCalcForPoint(Point p)
          Get the Calculable value for a corresponding point
 void paint(Graphics g, Dimension size)
          Paints the view to the graphics context
 void setWatchDataSource(WatchDataSource watchDataSource)
          Sets the watch data source for this view
 

Method Detail

setWatchDataSource

void setWatchDataSource(WatchDataSource watchDataSource)
Sets the watch data source for this view

Parameters:
watchDataSource - the watch data source.

paint

void paint(Graphics g,
           Dimension size)
Paints the view to the graphics context

Parameters:
g - the graphics context
size - The Dimension to paint

getCalcForPoint

CalculableViewable.PlottedCalculable getCalcForPoint(Point p)
Get the Calculable value for a corresponding point

Parameters:
p - The point
Returns:
If the plotted Calculable point's X value is equal to the input point's X value return the PlottedCalculable. Otherwise return null

Copyright © Rio Project.

Copyright © 2006-2011 Rio Project. All Rights Reserved.