package com.sun.scenario.effect;
import com.sun.javafx.geom.BaseBounds;
import com.sun.javafx.geom.transform.BaseTransform;
import com.sun.javafx.scene.BoundsAccessor;
import com.sun.javafx.util.Utils;
import javafx.beans.property.IntegerProperty;
import javafx.scene.Node;
import javafx.scene.effect.Blend;
import javafx.scene.effect.BlendMode;
public class EffectHelper {
private static EffectAccessor effectAccessor;
static {
Utils.forceInit(javafx.scene.effect.Effect.class);
}
private EffectHelper() {
}
public static Effect getPeer(javafx.scene.effect.Effect effect) {
return effectAccessor.getPeer(effect);
}
public static void sync(javafx.scene.effect.Effect effect) {
effectAccessor.sync(effect);
}
public static IntegerProperty effectDirtyProperty(javafx.scene.effect.Effect effect) {
return effectAccessor.effectDirtyProperty(effect);
}
public static boolean isEffectDirty(javafx.scene.effect.Effect effect) {
return effectAccessor.isEffectDirty(effect);
}
public static BaseBounds getBounds(javafx.scene.effect.Effect effect,
BaseBounds bounds, BaseTransform tx, Node node, BoundsAccessor boundsAccessor) {
return effectAccessor.getBounds(effect, bounds, tx, node, boundsAccessor);
}
public static javafx.scene.effect.Effect copy(javafx.scene.effect.Effect effect) {
return effectAccessor.copy(effect);
}
public static com.sun.scenario.effect.Blend.Mode getToolkitBlendMode(BlendMode mode) {
return effectAccessor.getToolkitBlendMode(mode);
}
public static void setEffectAccessor(final EffectAccessor newAccessor) {
if (effectAccessor != null) {
throw new IllegalStateException();
}
effectAccessor = newAccessor;
}
public interface EffectAccessor {
Effect getPeer(javafx.scene.effect.Effect effect);
void sync(javafx.scene.effect.Effect effect);
IntegerProperty effectDirtyProperty(javafx.scene.effect.Effect effect);
boolean isEffectDirty(javafx.scene.effect.Effect effect);
BaseBounds getBounds(javafx.scene.effect.Effect effect, BaseBounds bounds,
BaseTransform tx, Node node, BoundsAccessor boundsAccessor);
javafx.scene.effect.Effect copy(javafx.scene.effect.Effect effect);
com.sun.scenario.effect.Blend.Mode getToolkitBlendMode(javafx.scene.effect.BlendMode mode);
}
}