|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.electric.tool.Tool
com.sun.electric.tool.Listener
public abstract class Listener
This class represents a Listener - a Tool which can listen to Changes.
| Field Summary |
|---|
| Fields inherited from class com.sun.electric.tool.Tool |
|---|
prefs |
| Constructor Summary | |
|---|---|
protected |
Listener(java.lang.String toolName)
The constructor for Listener is only called by subclasses. |
| Method Summary | |
|---|---|
abstract void |
endBatch(Snapshot oldSnapshot,
Snapshot newSnapshot,
boolean undoRedo)
Handles database changes of a Job. |
void |
eraseLibrary(Library lib)
Method to announce that a Library is about to be erased. |
void |
examineCell(Cell cell)
Method to examine a cell because it has changed. |
void |
killObject(ElectricObject obj)
Method to handle the deletion of an ElectricObject. |
void |
modifyArcInst(ArcInst ai,
ImmutableArcInst oD)
Method to handle a change to an ArcInst. |
void |
modifyCell(Cell cell,
ImmutableCell oD)
Method to handle a change to a Cell. |
void |
modifyCellGroup(Cell cell,
Cell.CellGroup oCellGroup)
Method to announce a move of a Cell int CellGroup. |
void |
modifyExport(Export pp,
ImmutableExport oD)
Method to handle a change to an Export. |
void |
modifyLibrary(Library lib,
ImmutableLibrary oldD)
Method to handle a change to a Library. |
void |
modifyNodeInst(NodeInst ni,
ImmutableNodeInst oD)
Method to handle a change to a NodeInst. |
void |
newObject(ElectricObject obj)
Method to handle the creation of a new ElectricObject. |
void |
readLibrary(Library lib)
Method to announce that a Library has been read. |
void |
renameObject(ElectricObject obj,
java.lang.Object oldName)
Method to handle the renaming of an ElectricObject. |
void |
request(java.lang.String cmd)
Method to make a request of a constraint system (not used). |
void |
slice()
Method to give a constraint system a chance to run. |
void |
startBatch(Tool tool,
boolean undoRedo)
Method to handle the start of a batch of changes. |
void |
writeLibrary(Library lib)
Method to announce that a Library is about to be written to disk. |
| Methods inherited from class com.sun.electric.tool.Tool |
|---|
clearAnalysis, clearBackground, clearFixErrors, clearIncremental, clearOn, clearSynthesis, compareTo, findTool, getIndex, getListeners, getName, getNumTools, getProjectSettings, getTools, init, initAllTools, isAnalysis, isBackground, isFixErrors, isIncremental, isOn, isSynthesis, setAnalysis, setBackground, setFixErrors, setIncremental, setOn, setSynthesis, setVarInJob, testAll, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.sun.electric.database.change.Changes |
|---|
init |
| Constructor Detail |
|---|
protected Listener(java.lang.String toolName)
toolName - the name of this listener.| Method Detail |
|---|
public void request(java.lang.String cmd)
request in interface Changescmd - the command request.public void examineCell(Cell cell)
examineCell in interface Changescell - the Cell to examine.public void slice()
slice in interface Changes
public void startBatch(Tool tool,
boolean undoRedo)
startBatch in interface Changestool - the tool that generated the changes.undoRedo - true if these changes are from an undo or redo command.
public abstract void endBatch(Snapshot oldSnapshot,
Snapshot newSnapshot,
boolean undoRedo)
endBatch in interface ChangesoldSnapshot - database snapshot before Job.newSnapshot - database snapshot after Job and constraint propagation.undoRedo - true if Job was Undo/Redo job.
public void modifyNodeInst(NodeInst ni,
ImmutableNodeInst oD)
modifyNodeInst in interface Changesni - the NodeInst that was changed.oD - the old contents of the NodeInst.
public void modifyArcInst(ArcInst ai,
ImmutableArcInst oD)
modifyArcInst in interface Changesai - the ArcInst that changed.oD - the old contents of the ArcInst.
public void modifyExport(Export pp,
ImmutableExport oD)
modifyExport in interface Changespp - the Export that moved.oD - the old contents of the Export.
public void modifyCell(Cell cell,
ImmutableCell oD)
modifyCell in interface Changescell - the Cell that was changed.oD - the old contents of the Cell.
public void modifyCellGroup(Cell cell,
Cell.CellGroup oCellGroup)
modifyCellGroup in interface Changescell - the cell that was moved.oCellGroup - the old CellGroup of the Cell.
public void modifyLibrary(Library lib,
ImmutableLibrary oldD)
modifyLibrary in interface Changeslib - the Library that was changed.oldD - the old contents of the Library.public void newObject(ElectricObject obj)
newObject in interface Changesobj - the ElectricObject that was just created.public void killObject(ElectricObject obj)
killObject in interface Changesobj - the ElectricObject that was just deleted.
public void renameObject(ElectricObject obj,
java.lang.Object oldName)
renameObject in interface Changesobj - the ElectricObject that was renamed.oldName - the former name of that ElectricObject.public void readLibrary(Library lib)
readLibrary in interface Changeslib - the Library that was read.public void eraseLibrary(Library lib)
eraseLibrary in interface Changeslib - the Library that will be erased.public void writeLibrary(Library lib)
writeLibrary in interface Changeslib - the Library that will be saved.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||