| 1 | [[BackLinksMenu]] |
| 2 | |
| 3 | [[TicketQuery(summary=FRAME_FILLING_GRADIENT_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|)]] |
| 4 | |
| 5 | |
| 6 | = Analysis = |
| 7 | |
| 8 | == Overview == |
| 9 | |
| 10 | The frame could be filled with GRADIENT of two colors. The gradient could be two types - linear and radial. Those are two different opption of frame filling - LINEAR GRADIENT and RADIAL GRADIENT. |
| 11 | |
| 12 | == Task requirements == |
| 13 | |
| 14 | * If the RADIAL GRADIENT filling is chosen, frame should be filled with radial gradient of the two filling colors. |
| 15 | |
| 16 | * If the LINEAR GRADIENT filling is chosen, frame should be filled with radial gradient of the two filling colors. |
| 17 | |
| 18 | * Every time the user chooses different first or second filling color from the hud the filling changes. |
| 19 | |
| 20 | * The default colors for GRADIENT are white and black. |
| 21 | |
| 22 | == Task result == |
| 23 | The result of this task is source code. |
| 24 | |
| 25 | == Implementation idea == |
| 26 | Add a second color to the shape scene elements. |
| 27 | When creating the scene shape element compute its filling type and colors from the model. |
| 28 | Use the java.awt.Graphics2D methods to setPaint and fill the scene element according to its type and color. |
| 29 | |
| 30 | == Related == |
| 31 | [wiki:FRAME_APPEARANCE_HALO_AND_HUD_R0] [[BR]] |
| 32 | [wiki:FRAME_FILLING_SOLID_R0] [[BR]] |
| 33 | [wiki:FRAME_FILLING_PATTERN_R0] [[BR]] |
| 34 | [wiki:FRAME_FILLING_IMAGE_R0] [[BR]] |
| 35 | |
| 36 | == How to demo == |
| 37 | |
| 38 | * Demonstrate changing the colors of the frames gradient filling. |
| 39 | * Demonstrate changing the type of the frames gradient filling – linear to/from radial. |
| 40 | |
| 41 | = Design = |
| 42 | |
| 43 | |
| 44 | = Implementation = |
| 45 | ^(Implementation results should be described and linked here (from the wiki or the repository))^ |
| 46 | |
| 47 | = Testing = |
| 48 | |
| 49 | = Comments = |
| 50 | ^(Write comments for this or later revisions here.) |