View Javadoc

1   /**********************************************
2    * Copyright (C) 2011 Lukas Laag
3    * This file is part of svgreal.
4    * 
5    * svgreal is free software: you can redistribute it and/or modify
6    * it under the terms of the GNU General Public License as published by
7    * the Free Software Foundation, either version 3 of the License, or
8    * (at your option) any later version.
9    * 
10   * svgreal is distributed in the hope that it will be useful,
11   * but WITHOUT ANY WARRANTY; without even the implied warranty of
12   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13   * GNU General Public License for more details.
14   * 
15   * You should have received a copy of the GNU General Public License
16   * along with svgreal.  If not, see http://www.gnu.org/licenses/
17   **********************************************/
18  package org.vectomatic.svg.edit.client.command.path;
19  
20  import org.vectomatic.dom.svg.OMSVGPathSeg;
21  import org.vectomatic.dom.svg.OMSVGPathSegClosePath;
22  import org.vectomatic.dom.svg.OMSVGPoint;
23  
24  import com.google.gwt.dom.client.Element;
25  
26  /**
27   * Class to represent a path close segment 
28   * @author laaglu
29   */
30  public class SVGCloseSegRep extends SVGSegRep {
31  	/**
32  	 * The close component of this path segment
33  	 */
34  	protected OMSVGPathSegClosePath closeSeg;
35  
36  	public SVGCloseSegRep(IPathRepOwner owner, OMSVGPathSegClosePath closeSeg) {
37  		super(owner);
38  		this.closeSeg = closeSeg;
39  	}
40  
41  	@Override
42  	public OMSVGPathSeg getElement() {
43  		return closeSeg;
44  	}
45  
46  	@Override
47  	public float getX() {
48  		return 0;
49  	}
50  
51  	@Override
52  	public float getY() {
53  		return 0;
54  	}
55  
56  	@Override
57  	public void setX(float x) {
58  	}
59  
60  	@Override
61  	public void setY(float y) {
62  	}
63  
64  	@Override
65  	public void processMouseMove(OMSVGPoint delta, Element target, float hs, boolean isCtrlKeyDown) {
66  	}
67  
68  	@Override
69  	public void updateEnd(OMSVGPoint delta, float hs) {
70  	}
71  
72  	@Override
73  	public void update(float hs) {
74  	}
75  
76  }