resolution : Java Glossary
home R words local find no local find frame, full screen Google search web for topic jump to footer translate with Babelfish 2008-04-04 by Roedy Green ©1996-2008 Canadian Mind Products
Go to : punctuation 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z (all)
resolution
The fineness of the monitor screen.
Introduction The Scale Problem
Measuring Resolution Learning More
Printed Resolution Links

Introduction

If you look at the Windows Control Panel under Display, (or the equivalent) you can see that you can control the screen resolution, typically something like 640x480, 800 × 600, 1024 × 768, 1280 × 1024, 1920 × 1080 (HDTV), 1920 × 1200 up to about 7680 × 4800. The image on your screen in made up of rows and columns of tiny coloured dots called pixels. The number 1280x1024 means the image is 1280 columns of dots wide by 1024 rows of dots high.

Low resolution would be 640x480 pixels (width × height). High resolution would be 1280x1024. The Dell 15" WUXGA has 1920x1200. Because the more dots you have, the smaller they are, you must compensate by using a larger monitor for high resolution, or the type will be too small to read.

If you double the resolution, there are four times as many dots. This means the video hardware has four times as much work to do each second to keep the screen refreshed. Further, the computer has four times as many dots to render each time the screen changes. For high resolutions, you thus need high performance video hardware.

Recent LCDs use a hardware resolution between 86dpi and 147dpi, only a few LCDs use a resolution around 204dpi (Toshiba, IBM).

Measuring Resolution

To summarise, there are four way to measure resolution:
  1. total number of pixels (dots), e.g. 1280x1024. Bigger is better.
  2. diagonal size of the screen, e.g. 15" (LCD makers are more honest that CRT makers). Bigger is better. Take a ruler to the showroom with you to get he honest figure.
  3. dpi, dots per inch, how densely the pixels are packed. Bigger is better. A 1280 × 1024 image on a 17" monitor is only about 100 dpi. A 1600 × 1200 image on a 19" monitor is about 111 dpi.
  4. dot pitch, how wide the physical sub-pixels are. Smaller in better. A typical monitor spaces the red dots about 0.231 mm apart.
  5. VU. Visual Units. This is my personal proposal. One VU is the vertical distance between two lines of type the user can comfortably read. It is the leading of the user’s preferred body font. What it corresponds to in cm or pixels depends on many factors including visual acuity, personal preference and screen resolution. My idea is you would design in visual units, and the user would configure the value of a visual unit in pixels using a system wide slider in the Control Panel. The definition would then by used by the OS and all apps. The user could adjust it an any time, causing a system wide revalidate. The GUI and layouts would still work in pixels at the low level, but for various higher level methods you could specify co-ordinates and sizes in terms of a VU grid, or perhaps in terms of integral MVUs, thousandths of a VU. The notion could be used both for designing screen layouts and printed output easily readable by the user.
Trust your eyes not the specs. They are the ones that have to be happy with the image. It should not flicker or distort. It should be sharp and clear.

Printed Resolution

The Scale Problem

The problem is ordinary Java apps look too small on these high resolution screens, because Java apps are constructed in pixels, not points or inches the way PostScript is. A program that draws an icon 32 pixels high looks huge on a low res screen, but shrinks down to a mite on an ultra highres screen.

The free and open source JGoodies Forms layout system addresses this issue; it support non-pixel sizes: pt, mm, cm, in and more important, it supports dialog units (dlu) that scale with the resolution and dialog font size. Here is how to find the size and resolution of the screen to use in adjusting your Font and Frame sizes.

import java.awt.Dimension;
import java.awt.Toolkit;

...

// Get screen size in pixels, width by height.
Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();

// Get screen resolution in dots per inch.
// The Americans who develop Java have not noticed the world has gone metric.
int dpi = Toolkit.getDefaultToolkit().getScreenResolution();
See a more detailed discussed under scalable layouts.

Learning More

Sun’s Javadoc on the getScreenSize method : available:
Sun’s Javadoc on the getScreenResolution method : available:

CMP_homejump to top
CMP logo
feedback Please email your feedback for publication, errors, omissions, broken/redirected link reports
and suggestions to improve this page to Roedy Green : feedback email
made with CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[65.110.21.43]
Your face IP:[38.103.63.16] The information on this page is for non-military use only.
You are visitor number 10,856. Military use includes use by defence contractors.
You can get a fresh copy of this page from: or possibly from your local J: drive (Java virtual drive/Mindprod website mirror)
http://mindprod.com/jgloss/resolution.html J:\mindprod\jgloss\resolution.html