Pages

Subscribe:

Labels

Tuesday, July 31, 2012

Development : Image Shifting, Delete Location



 ------------------------------------------------------------------------------------------------------------ 
Changes :
1. 2 frames added, menushiftsettingframe and locselectshiftsettingframe. This is where the user can shift the background images. (Picture 1 and Picture 2)
2. DraggableComponent.java and DraggableImageComponent.java added. These are needed to enable the image to be moved using mouse-click.
3. The images being used for main menu and location setting background are saved into JPEG file,
because mbg_str and lbg_str cannot be used.

Progress & its' problems :
1. Instead of saving the image location, the background image is cropped based on the panel size, currently 600 x 340 for both frame.
Clipping algorithm has not been applied, therefore, the codes can only clip the image on the same location.
Clipping algorithm will be applied later on.

2. If the user want to change the image for main menu background and location background after he loaded one, the menushiftsettingframe and locselectshiftsettingframe will not show the new selected image.
It will show the first image being chosen instead, but the shown image will take the new selected image size.
This part can work properly when a JOptionPane is being used. Still trying to find out on how to solve this matter.

3. 'Delete Location' button is added to Location Setting.
Works properly, but after the user delete the location for the second time (and more), the deleted location
is not removed from the screen and it cannot be selected. (Picture 3)

4. 'Location Shifting' have not done, still doing research.
------------------------------------------------------------------------------------------------------------


Picture 1

Picture 2


Picture 3

0 comments:

Post a Comment