Re: Scaling/Resizing 2D graphics in JPanel
- From: "ahc" <tongqt@xxxxxxxxx>
- Date: 23 Feb 2006 06:05:09 -0800
you can inherite your own canvas class from JPanel. in this class,
define zero point and rate.
then there will be two coordinate: absolute coordinate and relative
coordinate.
the shapes or components that store in it are scaled by relative
coordinate.
when need draw them on canvas, canvas convert them from relative
coordinate to absolute coordinate.
zoomin or zoomout modify its rate. move canvas modify its zero point.
.
- Follow-Ups:
- Re: Scaling/Resizing 2D graphics in JPanel
- From: steve_marjoribanks@xxxxxxxxxxx
- Re: Scaling/Resizing 2D graphics in JPanel
- References:
- Scaling/Resizing 2D graphics in JPanel
- From: steve_marjoribanks@xxxxxxxxxxx
- Scaling/Resizing 2D graphics in JPanel
- Prev by Date: Editor / Renderer: data flow
- Next by Date: Re: Create TextBox In Java File
- Previous by thread: Scaling/Resizing 2D graphics in JPanel
- Next by thread: Re: Scaling/Resizing 2D graphics in JPanel
- Index(es):
Relevant Pages
|
|