package bluej.stride.generic;
import javafx.scene.effect.BoxBlur;
import javafx.scene.effect.ColorAdjust;
import javafx.scene.effect.Effect;
public class FrameEffects
{
private static Effect disabledEffect;
private static Effect dragSourceEffect;
private static Effect dragSourceAndDisabledEffect;
public static Effect getDisabledEffect()
{
if (disabledEffect == null)
{
ColorAdjust adj = new ColorAdjust(0, -0.5, 0.3, 0.0);
adj.setInput(new BoxBlur(2, 2, 5));
disabledEffect = adj;
}
return disabledEffect;
}
private static Effect getDragSourceEffect(Effect input)
{
BoxBlur bb = new BoxBlur();
bb.setWidth(4);
bb.setHeight(4);
bb.setIterations(2);
bb.setInput(input);
return bb;
}
public static Effect getDragSourceEffect()
{
if (dragSourceEffect == null)
dragSourceEffect = getDragSourceEffect(null);
return dragSourceEffect;
}
public static Effect getDragSourceAndDisabledEffect()
{
if (dragSourceAndDisabledEffect == null)
dragSourceAndDisabledEffect = getDragSourceEffect(getDisabledEffect());
return dragSourceAndDisabledEffect;
}
}
top,
use,
map,
class FrameEffects
. getDisabledEffect
. getDragSourceEffect
. getDragSourceEffect
. getDragSourceAndDisabledEffect
61 neLoCode
+ 0 LoComm