org.problets.domain.view.code.synthesis
Class SynthesisCodeSegmentView

java.lang.Object
  extended by org.problets.domain.view.code.synthesis.SynthesisCodeSegmentView
All Implemented Interfaces:
GUIConstants

public class SynthesisCodeSegmentView
extends java.lang.Object
implements GUIConstants

Displays the SynthesisCodeSegment on the panel displaying the code

Since:
2 / 15 / 2008
Author:
Amruth Kumar

Field Summary
 
Fields inherited from interface org.problets.domain.state.GUIConstants
BACKGROUND_COLOR, CORRECT_COLOR, hugeFont, INCORRECT_COLOR, largeBoldFont, largeFont, PARTIAL_COLOR, regularFont
 
Constructor Summary
SynthesisCodeSegmentView(SynthesisCodeSegment inModel)
           
 
Method Summary
 int drawSegment(java.awt.Graphics g, int xCoord, int yCoord)
           
 SynthesisCodeSegment getModel()
          Returns a reference to the model of this segment
static void main(java.lang.String[] args)
           
 void print()
           
 boolean withinSegment(int xCoord)
          Returns true if xCoord is within the extend of this code segment
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SynthesisCodeSegmentView

public SynthesisCodeSegmentView(SynthesisCodeSegment inModel)
Method Detail

drawSegment

public int drawSegment(java.awt.Graphics g,
                       int xCoord,
                       int yCoord)

withinSegment

public boolean withinSegment(int xCoord)
Returns true if xCoord is within the extend of this code segment


getModel

public SynthesisCodeSegment getModel()
Returns a reference to the model of this segment


print

public void print()

main

public static void main(java.lang.String[] args)