01: /*
02: * Copyright 2006-2007 Pentaho Corporation. All rights reserved.
03: * This software was developed by Pentaho Corporation and is provided under the terms
04: * of the Mozilla Public License, Version 1.1, or any later version. You may not use
05: * this file except in compliance with the license. If you need a copy of the license,
06: * please go to http://www.mozilla.org/MPL/MPL-1.1.txt.
07: *
08: * Software distributed under the Mozilla Public License is distributed on an "AS IS"
09: * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. Please refer to
10: * the license for the specific language governing your rights and limitations.
11: *
12: * Additional Contributor(s): Martin Schmid gridvision engineering GmbH
13: */
14: package org.pentaho.reportdesigner.lib.common.graph;
15:
16: import org.jetbrains.annotations.NotNull;
17:
18: public class DummyVertex extends Vertex {
19:
20: private int width = 1;
21: private int height = 1;
22: @NotNull
23: private Object obj;
24:
25: public DummyVertex(@NotNull
26: Object obj) {
27: this .obj = obj;
28: }
29:
30: public int getWidth() {
31: return height;
32: }
33:
34: public int getHeight() {
35: return width;
36: }
37:
38: public int getOrderID() {
39: return 0;
40: }
41:
42: @NotNull
43: public String toString() {
44: return obj.toString();
45: }
46:
47: }
|