Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #4723

Re: Terminology

From "John B. Matthews" <nospam@nospam.invalid>
Newsgroups comp.lang.java.gui
Subject Re: Terminology
Date 2011-10-31 11:09 -0400
Organization The Wasteland
Message-ID <nospam-FF6C80.11090231102011@news.aioe.org> (permalink)
References <knpsa79aju8ob5str836u8cekoih2ba6h3@4ax.com>

Show all headers | View raw


In article <knpsa79aju8ob5str836u8cekoih2ba6h3@4ax.com>,
 Roedy Green <see_website@mindprod.com.invalid> wrote:

> When you paint a JPanel with a paintComponent what do you call the
> area of RAM you paint on, the thing that the Graphics object points
> to?  In AWT you might call it the canvas. In DOS days you would have
> called it the REGEN.

The API uses the term "graphics context" for the parameter g, a 
reference to an object having methods that can modify the pixels of an 
output device or memory region. I would hesitate to say that it "points 
to" an area of RAM. Rather, it offers a pixel-oriented abstraction of 
the various ColorModel and SampleModel types encountered on disparate 
implementations.

<http://download.oracle.com/javase/7/docs/api/java/awt/Graphics.html>
<http://en.wikipedia.org/wiki/Pixel>

-- 
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Terminology Roedy Green <see_website@mindprod.com.invalid> - 2011-10-31 02:16 -0700
  Re: Terminology "John B. Matthews" <nospam@nospam.invalid> - 2011-10-31 11:09 -0400
  Re: Terminology markspace <-@.> - 2011-10-31 09:05 -0700

csiph-web