|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectRaptor.ProofItem
Raptor.ProgramLine
public class ProgramLine
Is a line containing the program code in a ProofBox.
Extends ProofItem
Constructor Summary | |
---|---|
ProgramLine(Statements pStatements,
int pLine,
ProofWindow pParentWindow,
ProofBox pParentBox)
Constructs a ProgramLine with a statement and program line number |
|
ProgramLine(Statements pStatements,
ProofWindow pParentWindow,
ProofBox pParentBox)
Constructs a ProgramLine with statement. |
Method Summary | |
---|---|
void |
deselectLine()
Carries out the methods required to show and record that a ProgramLine has been deselected |
void |
deselectLineNoClear()
Carries out the methods required to show and record that a ProgramLine has been deselected without clearing the last selected item for the ProofWindow. |
javax.swing.JPanel |
display()
Returns a JPanel containing this ProgramLine |
void |
displayColour()
Sets the display colour of the ProgramLine depending on if the line is selected. |
int |
getProgLineNum()
Returns the program line number of ProgramLine |
Statements |
getStatements()
Returns the statement of this ProgramLine |
boolean |
isUsed()
Returns true if ProgramLine has been used |
void |
mouseClicked(java.awt.event.MouseEvent e)
Responds to a ProofItem with a mouse listener being clicked. |
int[] |
recalculateLineNum(int pNextProofLine,
int pThisProgLine)
Returns the line number for the next ProofItem |
void |
selectLine()
Carries out the methods required to show and record that a ProgramLine has been selected |
void |
setProgLineNum(int pLine)
Sets the program line number of this ProgramLine |
void |
setStatements(Statements pStatements)
Sets the statement of this ProgramLine |
void |
setUsed(boolean pOpt)
Set if the ProgramLine has been used |
Methods inherited from class Raptor.ProofItem |
---|
getParentBox, getParentWindow, mouseEntered, mouseExited, mousePressed, mouseReleased, setParentBox |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProgramLine(Statements pStatements, ProofWindow pParentWindow, ProofBox pParentBox)
pStatements
- the ProgramLine statementpParentWindow
- the window that the ProgramLine is inpParentBox
- the ProofBox that contains this ProgramLinepublic ProgramLine(Statements pStatements, int pLine, ProofWindow pParentWindow, ProofBox pParentBox)
pStatements
- the ProgramLine statementpLine
- the line number of program linepParentWindow
- the window that the ProgramLine is inpParentBox
- the ProofBox that contains this ProgramLineMethod Detail |
---|
public int getProgLineNum()
public void setProgLineNum(int pLine)
pLine
- the line number of this ProgramLinepublic int[] recalculateLineNum(int pNextProofLine, int pThisProgLine)
recalculateLineNum
in class ProofItem
pNextProofLine
- the line number of next ProofItempThisProgLine
- the line number of this ProgramLinepublic Statements getStatements()
public void setStatements(Statements pStatements)
public boolean isUsed()
public void setUsed(boolean pOpt)
pOpt
- set if the ProgramLine is usedpublic void selectLine()
public void deselectLine()
deselectLine
in class ProofItem
public void deselectLineNoClear()
deselectLineNoClear
in class ProofItem
public javax.swing.JPanel display()
display
in class ProofItem
public void displayColour()
displayColour
in class ProofItem
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
mouseClicked
in class ProofItem
e
- the object with a mouse listener that was clicked
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |