org.problets.domain.view.code.synthesis
Class SynthesisCodeSegmentView
java.lang.Object
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
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 |
SynthesisCodeSegmentView
public SynthesisCodeSegmentView(SynthesisCodeSegment inModel)
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)