final String name;
final Map<String, Object> values = new HashMap<String, Object>();
ObserverGroupListener listener = null;
+ double priority;
public ConstantStyle(ReadGraph graph, Resource style) throws DatabaseException {
Layer0 L0 = Layer0.getInstance(graph);
}
}
+ public void setPriority(double priority) {
+ this.priority = priority;
+ }
+
+ public double getPriority() {
+ return priority;
+ }
+
private Object haxx(String key, Object value) {
if("alpha".equals(key)) {
return AlphaComposite.getInstance(AlphaComposite. SRC_OVER, Float.parseFloat((String)value));
}
}
+
+ @Override
+ public final void apply2(Object item, final EvaluationContext evaluationContext) {
+ final DataNodeMap map = evaluationContext.getConstant(ProfileKeys.NODE_MAP);
+ final INode node = map.getNode(item);
+
+ for(Map.Entry<String, Object> value : values.entrySet()) {
+ ProfileVariables.claimNodeProperty(node, value.getKey(), value.getValue(), evaluationContext);
+ }
+ }
@Override
public String toString() {