public class NeonBorderEffect extends AbstractAreaEffect
Modifier and Type | Class and Description |
---|---|
static class |
NeonBorderEffect.BorderPosition
An enum representing the position of the border: inside, outside, or centered on the border.
|
Modifier and Type | Field and Description |
---|---|
private NeonBorderEffect.BorderPosition |
borderPosition |
private Color |
centerColor |
private Color |
edgeColor |
_clipImage
Constructor and Description |
---|
NeonBorderEffect()
Create a new NeonBorderEffect
|
NeonBorderEffect(Color edgeColor,
Color centerColor,
int effectWidth)
Creates a new instance of NeonBorderEffect
|
Modifier and Type | Method and Description |
---|---|
NeonBorderEffect.BorderPosition |
getBorderPosition() |
Color |
getCenterColor() |
Color |
getEdgeColor()
Gets the current edge color.
|
protected Color |
interpolateColor(float t,
Color start,
Color end) |
protected void |
paintBorderGlow(Graphics2D gfx,
Shape clipShape,
int width,
int height)
Paints the border glow
|
void |
setBorderPosition(NeonBorderEffect.BorderPosition borderPosition) |
void |
setCenterColor(Color centerColor) |
void |
setEdgeColor(Color edgeColor)
Set the edge color
|
addPropertyChangeListener, apply, getBrushColor, getBrushSteps, getEffectWidth, getOffset, isRenderInsideShape, isShapeMasked, isShouldFillShape, removePropertyChangeListener, setBrushColor, setBrushSteps, setEffectWidth, setOffset, setRenderInsideShape, setShapeMasked, setShouldFillShape
private Color centerColor
private NeonBorderEffect.BorderPosition borderPosition
public NeonBorderEffect()
public NeonBorderEffect(Color edgeColor, Color centerColor, int effectWidth)
protected void paintBorderGlow(Graphics2D gfx, Shape clipShape, int width, int height)
AbstractAreaEffect
paintBorderGlow
in class AbstractAreaEffect
protected Color interpolateColor(float t, Color start, Color end)
public Color getEdgeColor()
public void setEdgeColor(Color edgeColor)
edgeColor
- public Color getCenterColor()
public void setCenterColor(Color centerColor)
centerColor
- color in the center of the effect.getCenterColor()
public NeonBorderEffect.BorderPosition getBorderPosition()
NeonBorderEffect.BorderPosition
public void setBorderPosition(NeonBorderEffect.BorderPosition borderPosition)
borderPosition
- position of the border relative to the edge of painter covered area.getBorderPosition()
,
NeonBorderEffect.BorderPosition
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses