Re: Relative Positioning of a Point

From: Thomas Weidenfeller (nobody_at_ericsson.invalid)
Date: 03/03/04


Date: Wed, 03 Mar 2004 08:58:44 +0100

B. Clay wrote:
> I'd like to be able to place a point (g.fillOval) in a relative
> position in a pane, rather than an absolute one. Is there a good way
> to do this?
>
> For example, if the pane is 100x100, and I put the point at 10,10, if
> the user resizes such that the pane ends up as 200x200, I want the
> point to be at 20,20.

See AffineTransform and the long explanation about coordinate spaces in
the API documentation of Graphics or Graphics2D (I forgot which one).

/Thomas



Relevant Pages

  • Re: Entourage Preview Pane Questions
    ... Entourage 2004 protects you by not downloading graphics that are not ... using the preview pane and allow these to load, ... > My understanding was that by displaying the message in the Preview Pane ...
    (microsoft.public.mac.office)
  • Re: Viewing images
    ... > Sure sounds like a video driver issue. ... >> them in the side pane and in slide sorter. ... Furthermore, the graphics also ... >> print out on the slides. ...
    (microsoft.public.powerpoint)
  • Re: Viewing images
    ... Sure sounds like a video driver issue. ... MS PowerPoint MVP Team ... > them in the side pane and in slide sorter. ... Furthermore, the graphics also ...
    (microsoft.public.powerpoint)
  • Re: 3D CAD in Pollock GUI
    ... draw graphics and animate graphics in a CAD view of the ... Instead of writing directly to the screen's graphics context, all invalidations in Pollock are done via a pixmap that is then Blitted to the screen. ... Pollock recently introduced a new pane: ...
    (comp.lang.smalltalk)
  • Re: Preview pane
    ... >we able to actually use the Autopreview and Preview pane ... I do know that Outlook 2000 with SP-3 will still attempt to connect to ... Some spammers include graphics in their email, ... This includes my ISP's mail servers and a few other services ...
    (microsoft.public.outlook.general)