int effectWidth = neonBorderEffect.getEffectWidth(); if (effectWidth > max) { max = effectWidth;
int steps = getEffectWidth(); if(borderPosition == BorderPosition.Centered) { steps = steps/2;
int steps = getEffectWidth(); if(borderPosition == BorderPosition.Centered) { steps = steps/2;
int steps = getEffectWidth(); if(borderPosition == BorderPosition.Centered) { steps = steps/2;
int steps = getEffectWidth(); if(borderPosition == BorderPosition.Centered) { steps = steps/2;
int steps = getEffectWidth(); if (borderPosition == BorderPosition.Centered) { steps = steps / 2;
private void initNeonBorderPanel(AreaEffects effects) { boolean enable = false; Color color = GREEN; Color innerColor = WHITE; int width = 10; if (effects != null) { NeonBorderEffect effect = effects.getNeonBorderEffect(); if (effect != null) { enable = true; color = effect.getEdgeColor(); innerColor = effect.getCenterColor(); width = effect.getEffectWidth(); } } if (neonBorderPanel == null) { // first initialization neonBorderPanel = new NeonBorderPanel( enable, color, innerColor, width); } else { neonBorderPanel.setTabEnabled(enable); neonBorderPanel.setBrushWidth(width); neonBorderPanel.setColor(color, false); neonBorderPanel.setInnerColor(innerColor, false); } }
@Test public void testNeonBorderEffect() { NeonBorderEffect effect = new NeonBorderEffect(); assertEquals(Color.GREEN, effect.getEdgeColor()); assertEquals(Color.WHITE, effect.getCenterColor()); assertEquals(10, effect.getBrushSteps()); assertEquals(10, effect.getEffectWidth()); assertEquals(new Point(0,0), effect.getOffset()); assertFalse(effect.isRenderInsideShape()); assertFalse(effect.isShouldFillShape()); } }