|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectPandora.ProofItem
Pandora.ProofLine
public class ProofLine
Is a line contained inside a ProofBox.
Extends ProofItem
| Constructor Summary | |
|---|---|
ProofLine(Formula f,
Justification just,
int line,
ProofWindow parentWindow,
ProofBox parentBox)
Constructs a ProofLine with a Formula, Justification and Line number. |
|
ProofLine(Formula f,
Justification just,
ProofWindow parentWindow,
ProofBox parentBox)
Constructs a ProofLine with a Formula and a Justification. |
|
ProofLine(Formula f,
ProofWindow parentWindow,
ProofBox parentBox)
Constructs a ProofLine with a formula. |
|
ProofLine(Formula f,
java.lang.String type,
ProofWindow parentWindow,
ProofBox parentBox)
Constructs a ProofLine with a Formula and a String which will become the Justification. |
|
| Method Summary | |
|---|---|
int |
compareTo(ProofLine o)
|
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 line)
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 f)
Sets the formula |
void |
setJustification(Justification just)
Sets a new justification of the ProofLine. |
void |
setLineComment(java.lang.String comment)
Sets the comment of this ProofLine |
void |
setLineNum(int line)
Sets the line number of this ProofLine. |
| Methods inherited from class Pandora.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 f,
ProofWindow parentWindow,
ProofBox parentBox)
f - the formula of the ProofLineparentWindow - The window that the ProofLine is inparentBox - The ProofBox that contains this ProofLine
public ProofLine(Formula f,
java.lang.String type,
ProofWindow parentWindow,
ProofBox parentBox)
f - The formula of the ProofLinetype - The String which will become the justification of the
ProofLineparentWindow - The window that the ProofLine is inparentBox - The ProofBox that contains this ProofLine
public ProofLine(Formula f,
Justification just,
ProofWindow parentWindow,
ProofBox parentBox)
f - The formula of the ProofLinejust - The justification of the ProofLineparentWindow - The window that the ProofLine is inparentBox - The ProofBox that contains this ProofLine
public ProofLine(Formula f,
Justification just,
int line,
ProofWindow parentWindow,
ProofBox parentBox)
f - The formula of the ProofLinejust - The justification of the ProofLineline - The line number of the ProofLine| Method Detail |
|---|
public int getLineNum()
public void setLineNum(int line)
line - The line number of this ProofLinepublic int recalculateLineNum(int line)
recalculateLineNum in class ProofItemline - The line number of this ProofLinepublic Formula getFormula()
public void setFormula(Formula f)
f - formula to setpublic Justification getJustification()
public void setJustification(Justification just)
just - The new justification of this ProofLinepublic java.lang.String getLineComment()
public void setLineComment(java.lang.String comment)
public void selectLine()
public void deselectLine()
public void deselectLineNoClear()
public 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 clickedpublic int compareTo(ProofLine o)
compareTo in interface java.lang.Comparable<ProofLine>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||