|
Re: Planning for 1.1.3 release: msg#00123java.vm.kaffe.general
> I'm not so optimistic about a stable release that soon, as I don't think > we should really cut that one based on time passed alone, but also > define a list of features we want to see in, as well as platforms we > want to see run, applications we want to offically list as supported in > 1.2 etc. For example, I think we shouldn't release 1.2 before the switch > to GNU Classpath is completed. That could be a awhile to use all of Classpath. I have alot of work to do for the AWT porting. I'm working on the native code right now which required a rewrite. > > - Easier support for graphical apps, with the ability to switch between > > multiple AWTs at run-time, etc. I was thinking about how to do that. We might be able to attach a Toolkit to a GraphicsConfiguration. I will have to think about it. > - Pull in new AWT stuff from james/helmer when it's done I started to working on the Frame and Window peers but I was missing to much info. At present I'm working on the the Grpahics*.java files in java/awt. I wrote a test apps and ran it against the SUN JVM. So now to implement it against Kaffe. import java.awt.image.*; import java.awt.*; class Screen { GraphicsEnvironment ge; GraphicsDevice active; GraphicsDevice[] gs; public static void main(String args[]) { Screen screen = new Screen(); screen.GetSizeOfAllScreens(); screen.Configure(); } Screen() { ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); gs = ge.getScreenDevices(); active = ge.getDefaultScreenDevice(); } public void Configure() { GraphicsConfiguration[] configs = active.getConfigurations(); GraphicsConfiguration current = active.getDefaultConfiguration(); for (int i = 0; i < configs.length; i++) { Rectangle box = configs[i].getBounds(); System.err.println("Width "+box.getWidth()+" Height "+box.getHeight()); ColorModel colors = configs[i].getColorModel(); System.err.println("Color model is "+colors.toString()); BufferCapabilities buffer = configs[i].getBufferCapabilities(); System.err.println("Back buffer support is "+buffer.isMultiBufferAvailable()); System.err.println("Full screen is need? "+buffer.isFullScreenRequired()); ImageCapabilities imagedata = configs[i].getImageCapabilities(); System.err.println("Image accelerated support? "+imagedata.isAccelerated()); } } public void GetSizeOfAllScreens() { // Get size of each screen for (int i = 0; i < gs.length; i++) { System.err.println(gs[i].getIDstring()); System.err.println(gs[i].getType()); System.err.println("Available Accelerated memory is "+gs[i].getAvailableAcceleratedMemory()); if (gs[i].isDisplayChangeSupported() == true) System.err.println("Display can change size"); else System.err.println("Display can't change size"); if (gs[i].isFullScreenSupported() == true) System.err.println("Full Screen Support"); else System.err.println("No Full Screen Support"); DisplayMode[] dm = gs[i].getDisplayModes(); for (int j = 0; j < dm.length; j++) { int screenWidth = dm[j].getWidth(); int screenHeight = dm[j].getHeight(); System.err.println("Screen width is "+screenWidth+" and height is "+screenHeight+" of Display "+i); } } } }
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Re: error:Switch label must be constant [JLS 14.10], Ito Kazumitsu |
|---|---|
| Next by Date: | CVS kaffe-extras (guilhem): Updated build.xml to use Ito's patch., Kaffe CVS |
| Previous by Thread: | Re: Planning for 1.1.3 release, Dalibor Topic |
| Next by Thread: | Re: Planning for 1.1.3 release, Jim Pick |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |