|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--waba.applet.JavaBridge
This class was created to implement all methods of Sun's JDK and thus making easier to port this package to other java platforms
Most of these methods are for internal use only. The only methods/members that may be called are:
setNonGUIApp resetNonGUIApp showMsgsNever call the other methods directly!
| Field Summary | |
static java.util.Hashtable |
htOpenedAt
|
static int |
scale
show 1:1, doubled, 3x or 4x |
static boolean |
showMsgs
set to false if you're deploying your JDK application, to hide the warning messages. |
| Constructor Summary | |
JavaBridge()
|
|
| Method Summary | |
static void |
beep()
called by waba.fx.Sound.beep and Sound.tone |
static void |
fillSettings()
called by waba.applet.Applet.init() |
static void |
fillTime(Time t)
called by waba.sys.Time constructor |
static java.awt.Color |
getColor(int color)
gets the awt color from the SuperWaba color |
static java.lang.String |
getDataPath()
|
static java.lang.String |
getDefaultCrid(java.lang.String name)
|
static UserFont |
getFont(Font f)
|
static UserFont |
getFontMetrics(Font f)
called by FontMetrics |
static long |
getTime()
called by methods in the waba.io.Catalog class |
static void |
GraphicsLine(ISurface surface,
int x1,
int y1,
int x2,
int y2,
int color)
|
static boolean |
isOk(java.lang.String s)
return true is the string is valid. called by openInputStream and openOutputStream in this class. |
static java.io.InputStream |
openInputStream(java.lang.String path)
used in some classes so they can correctly open files. now can open jar files. |
static java.io.OutputStream |
openOutputStream(java.lang.String path)
used in some classes so they can correctly open files. used internally by readBytes. |
static void |
print(java.lang.String s)
Calls System.out.println. |
static byte[] |
readBytes(java.lang.String path)
read the available bytes from the stream getted with openInputStream. called by waba.fx.Image and waba.io.Catalog |
static void |
resetNonGUIApp()
After creating the pdb, if you want to use the gui classes, you must call this method. |
static void |
setNonGUIApp()
IMPORTANT!!! |
static void |
storeSettings()
|
static boolean |
writeBytes(java.lang.String path,
byte[] buf,
int len)
write the available bytes to the stream getted with openOutputStream. called by waba.io.Catalog |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static boolean showMsgs
public static int scale
public static java.util.Hashtable htOpenedAt
| Constructor Detail |
public JavaBridge()
| Method Detail |
public static void setNonGUIApp()
public static void resetNonGUIApp()
public static void print(java.lang.String s)
public static UserFont getFont(Font f)
public static UserFont getFontMetrics(Font f)
public static void GraphicsLine(ISurface surface,
int x1,
int y1,
int x2,
int y2,
int color)
public static java.awt.Color getColor(int color)
public static java.lang.String getDataPath()
public static java.io.InputStream openInputStream(java.lang.String path)
public static java.io.OutputStream openOutputStream(java.lang.String path)
public static byte[] readBytes(java.lang.String path)
public static boolean writeBytes(java.lang.String path,
byte[] buf,
int len)
public static void beep()
public static boolean isOk(java.lang.String s)
public static long getTime()
public static void fillTime(Time t)
public static java.lang.String getDefaultCrid(java.lang.String name)
public static void storeSettings()
public static void fillSettings()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||