/* * Copyright 2017 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.kie.workbench.common.stunner.core.client.shape; import org.kie.workbench.common.stunner.core.client.canvas.Point2D; import org.kie.workbench.common.stunner.core.client.shape.view.ShapeView; public class ShapeViewStub implements ShapeView<Object> { public final static String UUID = "ssv-stub"; @Override public Object setUUID(final String uuid) { return this; } @Override public String getUUID() { return UUID; } @Override public double getShapeX() { return 0; } @Override public double getShapeY() { return 0; } @Override public Point2D getShapeAbsoluteLocation() { return new Point2D(0, 0); } @Override public Object setShapeX(final double x) { return this; } @Override public Object setShapeY(final double y) { return this; } @Override public double getAlpha() { return 0; } @Override public Object setAlpha(final double alpha) { return this; } @Override public String getFillColor() { return "#000000"; } @Override public Object setFillColor(final String color) { return this; } @Override public double getFillAlpha() { return 0; } @Override public Object setFillAlpha(final double alpha) { return this; } @Override public String getStrokeColor() { return "#000000"; } @Override public Object setStrokeColor(final String color) { return this; } @Override public double getStrokeAlpha() { return 0; } @Override public Object setStrokeAlpha(final double alpha) { return this; } @Override public double getStrokeWidth() { return 0; } @Override public Object setStrokeWidth(final double width) { return this; } @Override public Object moveToTop() { return this; } @Override public Object moveToBottom() { return this; } @Override public Object moveUp() { return this; } @Override public Object moveDown() { return this; } @Override public void removeFromParent() { } @Override public void destroy() { } }