|
|
JAVA, JSP, SERVLETS, TOMCAT, SERVLETS MANAGER,
Private JVM (Java Virtual Machine),
Private Tomcat Server
Alden Hosting offers private JVM (Java Virtual Machine), Java Server Pages (JSP), Servlets, and Servlets Manager with our Web Hosting Plans
WEB 4 PLAN and
WEB 5 PLAN ,
WEB 6 PLAN .
At Alden Hosting we eat and breathe Java! We are the industry leader in providing
affordable, quality and efficient Java web hosting in the shared hosting marketplace.
All our sites run on our Java hosing platform configured for
optimum performance using Java 1.6, Tomcat 6, MySQL 5, Apache 2.2 and web
application frameworks such as Struts, Hibernate, Cocoon, Ant, etc.
We offer only one type of Java hosting - Private Tomcat. Hosting accounts on the Private
Tomcat environment get their very own Tomcat server. You can start and re-start
your entire Tomcat server yourself.
Full-Screen Exclusive Mode (The Java™ Tutorials >
Bonus > Full-Screen Exclusive Mode API)
Full-Screen Exclusive Mode
Home Page
>
Bonus
>
Full-Screen Exclusive Mode API
Full-Screen Exclusive Mode
Programmers who use Microsoft's DirectX API may already be familiar with
full-screen exclusive mode. Other programmers may be somewhat new
to the concept. In either case, full-screen exclusive mode is a powerful
feature of J2SETM
version 1.4 that allows the programmer to
suspend the windowing system so that drawing can be done directly to the
screen.
This is a slight paradigm shift from the usual kind of GUI program in
many ways. In traditional Java GUI programs, the AWT is responsible
for propagating paint events from the operating system, through
the event dispatch thread, and by calling AWT's Component.paint method
when appropriate. In full-screen exclusive applications, painting
is usually done actively by the program itself. Additionally, a traditional
GUI application is limited to the bit depth and size of the screen chosen
by the user. In a full-screen exclusive application, the program
can control the bit depth and size (display mode) of the screen.
Finally, many more advanced techniques, such as page flipping (discussed
below) and stereo buffering (utilizing systems which use a separate set of
frames for each eye) require, on some platforms, that an application first
be in full-screen exclusive mode.
Hardware-Accelerated Image Basics
To understand the full-screen exclusive mode API, you need to
understand some basic principles of hardware-accelerated images.
The
VolatileImage interface encapsulates a surface which may or
may not take advantage of hardware acceleration. Such surfaces may
lose their hardware acceleration or their memory at the behest of the operating
system (hence, the name 'volatile'). See the VolatileImage Tutorial
(coming soon) for more information on volatile images.
Full-screen exclusive mode is handled through a java.awt.GraphicsDevice
object. For a list of all available screen graphics devices (in single
or multi-monitor systems), you can call the method getScreenDevices
on the local java.awt.GraphicsEnvironment; for the default (primary)
screen (the only screen on a single-monitor system), you can call the method
getDefaultScreenDevice.
Once you have the graphics device, you can call one of the following methods:
- public boolean isFullScreenSupported()
-
This method returns
whether or not full-screen exclusive mode is available. On systems
where full-screen exclusive mode is not available, it is probably better
to run an application in windowed mode with a fixed size rather than setting
a full-screen window.
- public void setFullScreenWindow(Window w)
- Given a window,
this method enters full-screen exclusive mode using that window.
If full-screen exclusive mode is not available, the window is positioned
at (0,0) and resized to fit the screen. Use this method with a
null
parameter to exit full-screen exclusive mode.
Programming Tips
Here are some tips about programming using full-screen exclusive mode:
JAVA, JSP, SERVLETS, TOMCAT, SERVLETS MANAGER,
Private JVM (Java Virtual Machine),
Private Tomcat Server
Alden Hosting offers private JVM (Java Virtual Machine), Java Server Pages (JSP), Servlets, and Servlets Manager with our Web Hosting Plans
WEB 4 PLAN and
WEB 5 PLAN ,
WEB 6 PLAN .
At Alden Hosting we eat and breathe Java! We are the industry leader in providing
affordable, quality and efficient Java web hosting in the shared hosting marketplace.
All our sites run on our Java hosing platform configured for
optimum performance using Java 1.6, Tomcat 6, MySQL 5, Apache 2.2 and web
application frameworks such as Struts, Hibernate, Cocoon, Ant, etc.
We offer only one type of Java hosting - Private Tomcat. Hosting accounts on the Private
Tomcat environment get their very own Tomcat server. You can start and re-start
your entire Tomcat server yourself.
|