wiki:FRAME_FILLING_PATTERN_R0

Version 1 (modified by mira, 16 years ago) (diff)

--

Error: Macro BackLinksMenu(None) failed
compressed data is corrupt

Error: Macro TicketQuery(summary=FRAME_FILLING_PATTERN_R0, format=table, col=summary|owner|status|type|component|priority|effort|importance, rows=description|analysis_owners|analysis_reviewers|analysis_score|design_owners|design_reviewers|design_score|implementation_owners|implementation_reviewers|implementation_score|test_owners|test_reviewers|test_score|) failed
current transaction is aborted, commands ignored until end of transaction block

Analysis

Overview

The frame could be filled with repetiton of a particular pattern.

Task requirements

  • If the user chooses the PATTERN filling type a pattern square should be shown instead of a color picker.
  • Initially it is white. The user can chhose a pattern by drag and drop a image from the resources palette.
  • The frame should be filled with repetition of this image.
  • The default option for filling is NONE.
  • If the user chooses different filling type or just different pattern the filling automaticly changes.

Task result

The result of this task is source code.

Implementation idea

Calculate the needed scene image elements to fill the frame and add them to the frame scene element. Use the java.awt.Graphics2D methods to show the image resource.

FRAME_APPEARANCE_HALO_AND_HUD_R0
FRAME_FILLING_GRADIENT_R0
FRAME_FILLING_SOLID_R0
FRAME_FILLING_IMAGE_R0

How to demo

  • Add a small image resource, choose the pattern filling from the frame appearance hud and drag the image to the pattern square.

Design

Implementation

(Implementation results should be described and linked here (from the wiki or the repository))

Testing

Comments

(Write comments for this or later revisions here.)