org.problets.domain.viz.data.implement.channel
Class ChannelViz

java.lang.Object
  extended by org.problets.domain.viz.data.implement.channel.ChannelViz
All Implemented Interfaces:
VizConstants

public class ChannelViz
extends java.lang.Object
implements VizConstants

Visualizes a channel

Author:
Amruth Kumar, Stefan Kasabov

Field Summary
 
Fields inherited from interface org.problets.domain.viz.data.VizConstants
ACTIVE_COLOR, COLOR_SCHEME, HIGHLIGHT_COLOR, INACTIVE_COLOR, STRIKEOUT_COLOR
 
Constructor Summary
ChannelViz(Channel inChannel)
           
 
Method Summary
 void draw(java.awt.Graphics g, int xCoord)
           
 int getLargerY()
           
 Channel getModel()
          Returns a reference to the model for which this visualization was created
 int getSmallerY()
           
 void update()
          Assigns startY and endY based on the current value of the model.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelViz

public ChannelViz(Channel inChannel)
Method Detail

draw

public void draw(java.awt.Graphics g,
                 int xCoord)

getModel

public Channel getModel()
Returns a reference to the model for which this visualization was created


getSmallerY

public int getSmallerY()

getLargerY

public int getLargerY()

update

public void update()
Assigns startY and endY based on the current value of the model. Called by this.constructor and ChannelManagerViz.update()