import org.simantics.db.RequestProcessor;
import org.simantics.db.Resource;
-import org.simantics.db.exception.DatabaseException;
import org.simantics.district.network.ui.nodes.ElevationServerNode;
import org.simantics.maps.elevation.server.SingletonTiffTileInterface;
import org.simantics.scenegraph.g2d.IG2DNode;
public class ElevationRectangleStyle implements Style {
private ObserverGroupListener listener = null;
- private double priority;
@Override
- public void activate(RequestProcessor backend, Resource runtimeDiagram, Resource entry, Group group, EvaluationContext observer) throws DatabaseException {
+ public void activate(RequestProcessor backend, Resource runtimeDiagram, Resource entry, Group group, EvaluationContext observer) {
if (listener != null && !listener.isDisposed())
return;
listener = new ObserverGroupListener(this, group, observer);
@Override
public void apply(Resource entry, Group group, EvaluationContext observer) {
- apply2(entry, observer);
- }
-
- @Override
- public void apply2(Object item, EvaluationContext observer) {
setRectangles(observer, SingletonTiffTileInterface.getBoundingBoxes());
}
((ElevationServerNode) node).setRectangles(rectangles);
}
}
-
- @Override
- public void setPriority(double priority) {
- this.priority = priority;
- }
-
- @Override
- public double getPriority() {
- return priority;
- }
}