|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.electric.tool.Client
com.sun.electric.tool.AbstractUserInterface
com.sun.electric.tool.user.UserInterfaceMain
public class UserInterfaceMain
Class to build the UserInterface for the main GUI version of the user interface.
| Nested Class Summary | |
|---|---|
static class |
UserInterfaceMain.Mode
Describe the windowing mode. |
| Nested classes/interfaces inherited from class com.sun.electric.tool.Client |
|---|
Client.BeepEvent, Client.EJobEvent, Client.JobQueueEvent, Client.OS, Client.PrintEvent, Client.ProgressNoteEvent, Client.ProgressValueEvent, Client.SavePrintEvent, Client.ServerEvent, Client.ShowMessageEvent, Client.StartProgressDialogEvent, Client.StopProgressDialogEvent, Client.TermLoggingEvent |
| Field Summary | |
|---|---|
protected static Progress |
progress
The progress during input. |
| Constructor Summary | |
|---|---|
UserInterfaceMain(java.util.List<java.lang.String> argsList,
UserInterfaceMain.Mode mode,
boolean showSplash)
|
|
| Method Summary | |
|---|---|
static void |
addDatabaseChangeListener(DatabaseChangeListener l)
Add a DatabaseChangeListener. |
void |
addEvent(Client.ServerEvent serverEvent)
|
void |
adjustReferencePoint(Cell theCell,
double cX,
double cY)
Method to adjust reference point in WindowFrame containing the cell |
void |
appendString(java.lang.String str)
|
int |
askForChoice(java.lang.String message,
java.lang.String title,
java.lang.String[] choices,
java.lang.String defaultChoice)
Method to ask for a choice among possibilities. |
java.lang.String |
askForInput(java.lang.Object message,
java.lang.String title,
java.lang.String def)
Method to ask for a line of text. |
void |
beep()
Method to beep. |
boolean |
confirmMessage(java.lang.Object message)
Method to show a message and ask for confirmation. |
EditWindow_ |
displayCell(Cell cell)
Method to request that a Cell be displayed in a new window. |
void |
finishInitialization()
Method is called when initialization was finished. |
static void |
fireDatabaseChangeEvent(DatabaseChangeEvent e)
Fire DatabaseChangeEvent to DatabaseChangeListeners. |
Cell |
getCurrentCell()
Method to return the current Cell in the current Library. |
EditWindow_ |
getCurrentEditWindow_()
Method to return the current "EditWindow_" object. |
EDatabase |
getDatabase()
Method to return the current database object. |
int |
getDefaultTextSize()
Method to return the height of default text (in points). |
static EditingPreferences |
getEditingPreferences()
|
static GraphicsPreferences |
getGraphicsPreferences()
|
java.lang.String |
getProgressNote()
Method to get text message in the progress dialog. |
static boolean |
getRedoEnabled()
Method to tell whether redo can be done. |
static boolean |
getUndoEnabled()
Method to tell whether undo can be done. |
static void |
importPrefs(java.net.URL fileURL)
For Pref |
Cell |
needCurrentCell()
Method to demand the current Cell. |
EditWindow_ |
needCurrentEditWindow_()
Method to demand the current "EditWindow_" object. |
void |
printMessage(java.lang.String message,
boolean newLine)
Method print a message. |
static void |
removeDatabaseChangeListener(DatabaseChangeListener l)
Remove a DatabaseChangeListener. |
void |
repaintAllWindows()
Method to request that all windows be redisplayed including palettes. |
java.lang.String |
reportLog(ErrorLogger.MessageLog log,
boolean showhigh,
Geometric[] gPair,
int position)
Method to return the error message associated with the current error. |
void |
restoreHighlights(int highlightsId)
Restore state of highlights by its ID. |
int |
saveHighlights()
Save current state of highlights and return its ID. |
void |
saveMessages(java.lang.String filePath)
Method to start saving messages. |
static void |
setEditingPreferences(EditingPreferences newEp)
|
static void |
setGraphicsPreferences(GraphicsPreferences gp)
|
void |
setProgressNote(java.lang.String message)
Method to set a text message in the progress dialog. |
void |
setProgressValue(int pct)
Method to update the progress bar |
void |
showErrorMessage(java.lang.String message,
java.lang.String title)
Method to show an error message. |
void |
showInformationMessage(java.lang.String message,
java.lang.String title)
Method to show an informational message. |
protected void |
showJobQueue(Job.Inform[] jobQueue)
|
void |
showSnapshot(Snapshot newSnapshot,
boolean undoRedo)
Show new database snapshot.saveh |
void |
showUndoRedoStatus(boolean newUndoEnabled,
boolean newRedoEnabled)
Show status of undo/redo buttons |
void |
startProgressDialog(java.lang.String msg,
java.lang.String filePath)
Method to start the display of a progress dialog. |
void |
stopProgressDialog()
Method to stop the progress bar |
protected void |
terminateJob(EJob ejob)
|
void |
termLogging(ErrorLogger log,
boolean explain,
boolean terminate)
|
void |
updateIncrementalDRCErrors(Cell cell,
java.util.List<ErrorLogger.MessageLog> newErrors,
java.util.List<ErrorLogger.MessageLog> delErrors)
|
void |
updateNetworkErrors(Cell cell,
java.util.List<ErrorLogger.MessageLog> errors)
|
static void |
userCommandIssued()
Method to report that the user issued a new command (click, keystroke, pulldown menu). |
| Methods inherited from class com.sun.electric.tool.AbstractUserInterface |
|---|
getCurrentLibrary, getCurrentLibraryId, getCurrentTechId, getCurrentTechnology, getJobKey, setClientThread, setCurrentLibrary, setCurrentTechnology |
| Methods inherited from class com.sun.electric.tool.Client |
|---|
getOperatingSystem, isOSMac, isOSWindows, newJobId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static Progress progress
| Constructor Detail |
|---|
public UserInterfaceMain(java.util.List<java.lang.String> argsList,
UserInterfaceMain.Mode mode,
boolean showSplash)
| Method Detail |
|---|
protected void terminateJob(EJob ejob)
terminateJob in class AbstractUserInterfaceprotected void showJobQueue(Job.Inform[] jobQueue)
showJobQueue in class AbstractUserInterfacepublic void addEvent(Client.ServerEvent serverEvent)
addEvent in class AbstractUserInterfacepublic void finishInitialization()
finishInitialization in class AbstractUserInterfacepublic EDatabase getDatabase()
UserInterface
getDatabase in interface UserInterfacegetDatabase in class AbstractUserInterfacepublic EditWindow_ getCurrentEditWindow_()
UserInterface
public EditWindow_ needCurrentEditWindow_()
UserInterface
public Cell getCurrentCell()
UserInterface
public Cell needCurrentCell()
UserInterface
public void adjustReferencePoint(Cell theCell,
double cX,
double cY)
public void repaintAllWindows()
UserInterface
public int getDefaultTextSize()
UserInterface
public EditWindow_ displayCell(Cell cell)
UserInterface
cell - the Cell to be displayed.
public void termLogging(ErrorLogger log,
boolean explain,
boolean terminate)
public void updateNetworkErrors(Cell cell,
java.util.List<ErrorLogger.MessageLog> errors)
updateNetworkErrors in class AbstractUserInterface
public void updateIncrementalDRCErrors(Cell cell,
java.util.List<ErrorLogger.MessageLog> newErrors,
java.util.List<ErrorLogger.MessageLog> delErrors)
updateIncrementalDRCErrors in class AbstractUserInterface
public java.lang.String reportLog(ErrorLogger.MessageLog log,
boolean showhigh,
Geometric[] gPair,
int position)
public void showErrorMessage(java.lang.String message,
java.lang.String title)
message - the error message to show.title - the title of a dialog with the error message.
public void showInformationMessage(java.lang.String message,
java.lang.String title)
message - the message to show.title - the title of a dialog with the message.
public void printMessage(java.lang.String message,
boolean newLine)
message - the message to show.newLine - add new line after the messagepublic void saveMessages(java.lang.String filePath)
filePath - file to savepublic static void userCommandIssued()
public void appendString(java.lang.String str)
public boolean confirmMessage(java.lang.Object message)
message - the message to show.
public int askForChoice(java.lang.String message,
java.lang.String title,
java.lang.String[] choices,
java.lang.String defaultChoice)
message - the message to show.title - the title of the dialog with the query.choices - an array of choices to present, each in a button.defaultChoice - the default choice.
public java.lang.String askForInput(java.lang.Object message,
java.lang.String title,
java.lang.String def)
message - the prompt message.title - the title of a dialog with the message.def - the default response.
public static void importPrefs(java.net.URL fileURL)
public int saveHighlights()
saveHighlights in class AbstractUserInterfacepublic void restoreHighlights(int highlightsId)
restoreHighlights in class AbstractUserInterfacehighlightsId - id of saved highlights.
public void showUndoRedoStatus(boolean newUndoEnabled,
boolean newRedoEnabled)
showUndoRedoStatus in class AbstractUserInterfacenewUndoEnabled - new status of undo button.newRedoEnabled - new status of redo button.
public void showSnapshot(Snapshot newSnapshot,
boolean undoRedo)
showSnapshot in class AbstractUserInterfacenewSnapshot - new snapshot.public void beep()
UserInterface
beep in interface UserInterfacebeep in class AbstractUserInterfacepublic static boolean getUndoEnabled()
public static boolean getRedoEnabled()
public static void addDatabaseChangeListener(DatabaseChangeListener l)
l - the listenerpublic static void removeDatabaseChangeListener(DatabaseChangeListener l)
public static void fireDatabaseChangeEvent(DatabaseChangeEvent e)
e - DatabaseChangeEvent.public static EditingPreferences getEditingPreferences()
public static void setEditingPreferences(EditingPreferences newEp)
public static GraphicsPreferences getGraphicsPreferences()
public static void setGraphicsPreferences(GraphicsPreferences gp)
public void startProgressDialog(java.lang.String msg,
java.lang.String filePath)
msg - the message to show in the progress dialog.filePath - the file being read (null if not reading a file).public void stopProgressDialog()
public void setProgressValue(int pct)
pct - the percentage done (from 0 to 100).public void setProgressNote(java.lang.String message)
message - the new progress message.public java.lang.String getProgressNote()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||