homebeaver / SwingSet

try to complete SwingSet3 org.swinglabs.swingx jars 1.6.6 for java 8 and openjdk 17 (Temurin)
GNU Lesser General Public License v2.1
0 stars 0 forks source link

effects for painters: InnerGlowPathEffect vs GlowPathEffect #13

Closed homebeaver closed 2 years ago

homebeaver commented 2 years ago

both implements interface AreaEffect, which can provide a shape to be drawn

GlowPathEffect

GlowPathEffect : glow around the painter

    public GlowPathEffect() {
        super();
        setBrushColor(Color.WHITE);
        setBrushSteps(10);
        setEffectWidth(10);
        setShouldFillShape(false);
        setOffset(new Point(0,0));
    }

see TextPainter Demo: grafik

InnerGlowPathEffect

InnerGlowPathEffect : glow inside the painter's shape see TextPainter Demo: grafik

code : GlowPathEffect +setRenderInsideShape(true);