@Override protected void initialize() { setHidden(true, "class"); setPropertyEditor(Paint2PropertyEditor.class, "brushColor"); }
/** * Creates a new instance of AreaEffect */ public AbstractAreaEffect() { setBrushColor(Color.BLACK); setBrushSteps(10); setEffectWidth(8); setRenderInsideShape(false); setOffset(new Point(4,4)); setShouldFillShape(true); setShapeMasked(true); }
/** Creates a new instance of ShadowPathEffect */ public ShadowPathEffect() { super(); setBrushColor(Color.BLACK); setRenderInsideShape(false); setShouldFillShape(true); setOffset(new Point(3,3)); }
/** Creates a new instance of InnerGlowPathEffect */ public InnerGlowPathEffect() { super(); setBrushColor(Color.WHITE); setBrushSteps(10); setEffectWidth(10); setShouldFillShape(false); setOffset(new Point(0,0)); setRenderInsideShape(true); }
/** * Creates a new instance of GlowPathEffect */ public GlowPathEffect() { super(); setBrushColor(Color.WHITE); setBrushSteps(10); setEffectWidth(10); setShouldFillShape(false); setOffset(new Point(0,0)); }
/** Creates a new instance of NeonBorderEffect */ public NeonBorderEffect(Color edgeColor, Color centerColor, int effectWidth) { super(); setEffectWidth(effectWidth); this.setEdgeColor(edgeColor); this.setCenterColor(centerColor); this.setRenderInsideShape(false); this.setShouldFillShape(false); this.setOffset(new Point(0,0)); }
/** Creates a new instance of InnerShadowPathEffect */ public InnerShadowPathEffect() { super(); setRenderInsideShape(true); setBrushColor(Color.BLACK); setOffset(new Point(2,2)); }
public static AreaEffects createRandom(Random rand) { AreaEffects ae = new AreaEffects(); float f = rand.nextFloat(); if(f < 0.25f) { ae.setNeonBorderEffect(new NeonBorderEffect()); } else if(f < 0.5f) { ae.setDropShadowEffect(new ShadowPathEffect(1.0f)); } else if(f < 0.75f) { ae.setInnerGlowEffect(new InnerGlowPathEffect(1.0f)); } else { ae.setGlowEffect(new GlowPathEffect(1.0f)); } return ae; }
private void drawPathEffects(Graphics2D g, Shape s, int w, int h) { if(getAreaEffects() != null) { //Paint pt = calculateFillPaint(component, w, h); for(AreaEffect ef : getAreaEffects()) { ef.apply(g, s, w, h); } } } }
@Override protected void initialize() { super.initialize(); setPropertyEditor(Paint2PropertyEditor.class, "edgeColor", "centerColor", "brushColor"); //setPropertyEditor(InsetsPropertyEditor.class,"insets"); setPropertyEditor(BorderPositionPropertyEditor.class,"borderPosition"); }
/** Creates a new instance of InnerGlowPathEffect */ public InnerGlowPathEffect() { super(); setBrushColor(Color.WHITE); setBrushSteps(10); setEffectWidth(10); setShouldFillShape(false); setOffset(new Point(0,0)); setRenderInsideShape(true); }
/** * Creates a new instance of AreaEffect */ public AbstractAreaEffect() { setBrushColor(Color.BLACK); setBrushSteps(10); setEffectWidth(8); setRenderInsideShape(false); setOffset(new Point(4,4)); setShouldFillShape(true); setShapeMasked(true); }
/** * Creates a new instance of GlowPathEffect */ public GlowPathEffect() { super(); setBrushColor(Color.WHITE); setBrushSteps(10); setEffectWidth(10); setShouldFillShape(false); setOffset(new Point(0,0)); }
/** Creates a new instance of NeonBorderEffect */ public NeonBorderEffect(Color edgeColor, Color centerColor, int effectWidth) { super(); setEffectWidth(effectWidth); this.setEdgeColor(edgeColor); this.setCenterColor(centerColor); this.setRenderInsideShape(false); this.setShouldFillShape(false); this.setOffset(new Point(0,0)); }
/** Creates a new instance of ShadowPathEffect */ public ShadowPathEffect() { super(); setBrushColor(Color.BLACK); setRenderInsideShape(false); setShouldFillShape(true); setOffset(new Point(3,3)); }
/** Creates a new instance of InnerShadowPathEffect */ public InnerShadowPathEffect() { super(); setRenderInsideShape(true); setBrushColor(Color.BLACK); setOffset(new Point(2,2)); }
@Override protected void initialize() { setHidden(true, "class"); setPropertyEditor(Paint2PropertyEditor.class, "brushColor"); }
/** Creates a new instance of InnerGlowPathEffect */ public InnerGlowPathEffect() { super(); setBrushColor(Color.WHITE); setBrushSteps(10); setEffectWidth(10); setShouldFillShape(false); setOffset(new Point(0,0)); setRenderInsideShape(true); }
/** * Creates a new instance of GlowPathEffect */ public GlowPathEffect() { super(); setBrushColor(Color.WHITE); setBrushSteps(10); setEffectWidth(10); setShouldFillShape(false); setOffset(new Point(0,0)); }
/** Creates a new instance of InnerShadowPathEffect */ public InnerShadowPathEffect() { super(); setRenderInsideShape(true); setBrushColor(Color.BLACK); setOffset(new Point(2,2)); }