|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectRaptor.ProofItem
Raptor.ProofLine
public class ProofLine
Represents a line contained inside a ProofBox.
Extends ProofItem
| Constructor Summary | |
|---|---|
ProofLine(Formula pFormula,
Justification pJustification,
int pLine,
ProofWindow pParentWindow,
ProofBox pParentBox)
Constructs a ProofLine with a Formula, Justification and Line number. |
|
ProofLine(Formula pFormula,
Justification pJustification,
ProofWindow pParentWindow,
ProofBox pParentBox)
Constructs a ProofLine with a Formula and a Justification. |
|
ProofLine(Formula pFormula,
ProofWindow pParentWindow,
ProofBox pParentBox)
Constructs a ProofLine with a formula. |
|
ProofLine(Formula pFormula,
java.lang.String pType,
ProofWindow pParentWindow,
ProofBox pParentBox)
Constructs a ProofLine with a Formula and a String which will become the Justification. |
|
| Method Summary | |
|---|---|
void |
deselectLine()
Carries out the methods required to show and record that a ProofLine has been deselected. |
void |
deselectLineNoClear()
Carries out the methods required to show and record that a ProofLine has been deselected without clearing the last selected item for the ProofWindow. |
javax.swing.JPanel |
display()
Returns JPanel containing this ProofLine. |
void |
displayColour()
Sets the display colour of the ProofLine depending on if the line is selected. |
Formula |
getFormula()
Returns the formula of this ProofLine. |
Justification |
getJustification()
Returns the justification of this ProofLine. |
java.lang.String |
getLineComment()
Returns the comment of this ProofLine |
int |
getLineNum()
Returns to line number of the ProofLine. |
void |
mouseClicked(java.awt.event.MouseEvent e)
Responds to a ProofItem with a mouse listener being clicked. |
int[] |
recalculateLineNum(int pThisLine,
int pNextLine)
Returns the line number for next ProofItem. |
void |
selectLine()
Carries out the methods required to show and record that a ProofLine has been selected. |
void |
setFormula(Formula pFormula)
Sets the formula |
void |
setJustification(Justification pJustification)
Sets a new justification of the ProofLine. |
void |
setLineComment(java.lang.String pComment)
Sets the comment of this ProofLine |
void |
setLineNum(int pLine)
Sets the line number of this ProofLine. |
| 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 ProofLine(Formula pFormula,
ProofWindow pParentWindow,
ProofBox pParentBox)
pFormula - the formula of the ProofLinepParentWindow - The window that the ProofLine is inpParentBox - The ProofBox that contains this ProofLine
public ProofLine(Formula pFormula,
java.lang.String pType,
ProofWindow pParentWindow,
ProofBox pParentBox)
pFormula - The formula of the ProofLinepType - The String which will become the justification of the
ProofLinepParentWindow - The window that the ProofLine is inpParentBox - The ProofBox that contains this ProofLine
public ProofLine(Formula pFormula,
Justification pJustification,
ProofWindow pParentWindow,
ProofBox pParentBox)
pFormula - The formula of the ProofLinepJustification - The justification of the ProofLinepParentWindow - The window that the ProofLine is inpParentBox - The ProofBox that contains this ProofLine
public ProofLine(Formula pFormula,
Justification pJustification,
int pLine,
ProofWindow pParentWindow,
ProofBox pParentBox)
pFormula - The formula of the ProofLinepJustification - The justification of the ProofLinepLine - The line number of the ProofLinepParentWindow - The window that the ProofLine is inpParentBox - The ProofBox that contains this ProofLine| Method Detail |
|---|
public int getLineNum()
public void setLineNum(int pLine)
pLine - The line number of this ProofLine
public int[] recalculateLineNum(int pThisLine,
int pNextLine)
recalculateLineNum in class ProofItempThisLine - The line number of this ProofLinepNextLine - the line number of next ProgramLinepublic Formula getFormula()
public void setFormula(Formula pFormula)
pFormula - formula to setpublic Justification getJustification()
public void setJustification(Justification pJustification)
pJustification - The new justification of this ProofLinepublic java.lang.String getLineComment()
public void setLineComment(java.lang.String pComment)
public void selectLine()
public void deselectLine()
deselectLine in class ProofItempublic void deselectLineNoClear()
deselectLineNoClear in class ProofItempublic javax.swing.JPanel display()
display in class ProofItempublic void displayColour()
displayColour in class ProofItempublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenermouseClicked in class ProofIteme - 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 | ||||||||