Last modified 16 years ago
Last modified on 02/03/09 01:51:33
Analysis
Overview
The user could drop shadow for a frame.
Task requirements
- The default shadow color is grey but the user can change it by the frame appearance hud.
- The frame shadow width and orientation depends on two values – the horizontal (X) and vertical (Y) shadow offsets. The user can change them by the frame appearance hud.
- The frame`s horizontal and vertical shadow widths are equal to the absolute values of the X and Y boxes from the frame appearance hud.
- When the horizontal offset is negative the shadow is droped to the left of the frame and if it is positive – to the right.
- When the vertical offset is negative the shadow is dropped below the frame and when it is positive the shadow is shown above it.
Task result
The result of this task is source code.
Implementation idea
Create a scene shape element for the shadow with solid filling type and specified color and opacity. Use the java.awt.Graphics2D methods to setPaint and fill the shadow shape.
Related
How to demo
- Open the frame appearance hud and Create a new frame and show how its appearance changes according to the the hud.
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.)