Exploring JXLayerUI
Wrapping one JXLayer into another JXLayer
-
First, a JTextPane (this text) is wrapped by a JXLayer (layer-one)
with a mouse drawing UI.
-
Then, layer-one is wrapped by a JXLayer
(layer-two) with a hide cursor UI.
-
Then, layer-two is wrapped by a JXLayer
(layer-three) with a magnifier glass UI.
- Layer-three is added to a JFrame.
A small explanation what you can do
-
Mouse drawing is performed by pressing a mouse button and moving the mouse around.
-
Via the options menu you can disable / enable the layer UIs separately.
-
Also via the options menu, you have some control over the layer UIs:
-
Mouse drawing UI:
you can clear the drawing
and you can set the color for the next lines that are drawn.
-
Hide cursor UI: you can change the timeout value
(the time that the cursor will be visible after a mouse movement).
-
Magnifier glass UI:
you can change the magnification factor
and you can change the radius of the glass.