| Modifier and Type | Field and Description |
|---|---|
private static Font |
Bold
Bold font being able to display all special characters needed
|
protected net.sourceforge.uiq3.calculator.engine.ICalculator |
Calculator
Calculator engine
|
private Thread |
Calculator_Thread
Thread in which the calculator runs.
|
protected static FileHandler |
File_Handler |
protected ICanvas |
Form
Canvas to display the Calculator in
|
private static GraphicsEnvironment |
Graphics_Environment
My graphic environment.
|
private static Logger |
logger
class logger instance
|
static boolean |
MAC_OS_X
true when we run on mac os x
|
private static Font |
Mono
Mono spaced font being able to display all special characters needed
|
private static Font |
Mono_Bold
Mono spaced bold font being able to display all special characters needed
|
private static Font |
Normal
normal font being able to display all special characters needed
|
private static String |
TAG
class logger tag.
|
| Constructor and Description |
|---|
Main()
Program start
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
about()
General info dialog; fed to the OSXAdapter as the method to call when "About OSXAdapter"
is selected from the application menu
|
static File |
Cache_Dir(String App_Name,
String Home_Directory)
directory for cache files
|
protected abstract net.sourceforge.uiq3.calculator.engine.ICalculator |
Create_Calculator()
Create Calculator engine.
|
protected abstract ICanvas |
Create_Canvas()
Create Calculator display.
|
protected void |
Fatal_Error(String Message)
Print Error message Stop Calculator and exit program.
|
static Font |
Get_Bold()
bold font being able to display all special characters needed
|
static Font |
Get_Mono_Bold()
Mono spaced bold font being able to display all special characters needed
|
static Font |
Get_Mono()
Mono spaced font being able to display all special characters needed
|
static Font |
Get_Normal()
normal font being able to display all special characters needed
|
boolean |
Is_OSX() |
abstract void |
loadFile(String Filename)
load a file
|
void |
pauseApp()
Signals the MIDlet to enter the Paused state.
|
abstract void |
preferences()
General preferences dialog; fed to the OSXAdapter as the method to call when
"About OSXAdapter" is selected from the application menu
|
abstract boolean |
quit()
General quit handler; fed to the OSXAdapter as the method to call when a system quit event
occurs A quit event is triggered by Cmd-Q, selecting Quit from the application or Dock
menu, or logging out
|
void |
registerForMacOSXEvents()
Generic registration with the Mac OS X application menu Checks the platform, then attempts
to register with the Apple EAWT See OSXAdapter.java to see how this is done without
directly referencing any Apple APIs
|
void |
run()
Initialise system and run virtual calculator CPU
|
protected static void |
Setup_Logging(Class<? extends Main> App_Class,
String App_Name,
String Home_Directory)
Setup Java logging.
|
void |
startApp()
Signals the Application that it has entered the Active state.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitIs_Running@Nullable private static Font Bold
protected static FileHandler File_Handler
private static final GraphicsEnvironment Graphics_Environment
private static final Logger logger
class logger instance
public static final boolean MAC_OS_X
true when we run on mac os x
@Nullable private static Font Mono
@Nullable private static Font Mono_Bold
@Nullable private static Font Normal
private static final String TAG
class logger tag.
@Nullable protected net.sourceforge.uiq3.calculator.engine.ICalculator Calculator
private Thread Calculator_Thread
@Nullable protected ICanvas Form
@NotNull public static File Cache_Dir(String App_Name, String Home_Directory)
directory for cache files
@Nullable public static Font Get_Bold()
@Nullable public static Font Get_Mono()
@Nullable public static Font Get_Mono_Bold()
@Nullable public static Font Get_Normal()
protected static void Setup_Logging(@NotNull
Class<? extends Main> App_Class,
String App_Name,
String Home_Directory)
Setup Java logging.
App_Class - Application calls nameApp_Name - Application nameHome_Directory - Appplication (not user) home directorypublic abstract void about()
protected abstract net.sourceforge.uiq3.calculator.engine.ICalculator Create_Calculator() throws IOException
IOException - I/O Errorprotected abstract ICanvas Create_Canvas() throws IOException
IOException - could not create canvasprotected void Fatal_Error(String Message)
Message - Message to be displayedpublic boolean Is_OSX()
Is_OSX in interface IMainIMain.Is_OSX()public abstract void loadFile(String Filename)
Filename - filename to loadpublic void pauseApp()
public abstract void preferences()
public abstract boolean quit()
public void registerForMacOSXEvents()
public void run()
Copyright © 2013 UIQ3 open-source software. All Rights Reserved.