Multiples layered images & performances
From: Tristan (tmarly_at_free.fr)
Date: 11/27/04
- Next message: Steven M. Lewis: "Need Help Displaying flud flow in pipes"
- Previous message: Timothy Murphy: "Looking for simple XML entry program"
- Next in thread: Mark Murphy: "Re:"
- Reply: Mark Murphy: "Re:"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 27 Nov 2004 08:11:27 -0800
Hi,
I have to draw many images (can be some hundreds, of every sizes).
These images can be overlapping each other. Moreover, the user must be
able to pick whatever image and move it.
I was wondering what is the solution for the best performances.
The solution to paint all images on the same panel through the paint()
method of a JPanel is of course a bad solution because each time the
window is resized or displayed, all pictures are drawed again.
There is the possibility to draw all images on an offscreen buffer.
However, I am not sure this is a good solution, because there is the
problem of picking one picture and to move it wherever the user wants.
There is also the problem that all pictures need to be redrawed when
one of the picture is moved.
I was wondering if the usage of one JLayeredPane by picture would
optimize the performances ?
Tristan
- Next message: Steven M. Lewis: "Need Help Displaying flud flow in pipes"
- Previous message: Timothy Murphy: "Looking for simple XML entry program"
- Next in thread: Mark Murphy: "Re:"
- Reply: Mark Murphy: "Re:"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|