net.sf.latexdraw.mapping
Class TempShape2TempViewMapping
java.lang.Object
org.malai.mapping.Unary2UnaryMapping<IShape,IViewShape>
net.sf.latexdraw.mapping.TempShape2TempViewMapping
- All Implemented Interfaces:
- IMapping
public class TempShape2TempViewMapping
- extends Unary2UnaryMapping<IShape,IViewShape>
Defines a mapping that link the temporary shape of the drawing to the
temporary view of the canvas.
This file is part of LaTeXDraw
Copyright (c) 2005-2012 Arnaud BLOUIN
LaTeXDraw is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
LaTeXDraw is distributed without any warranty; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more details.
05/15/10
- Since:
- 3.0
- Version:
- 3.0
- Author:
- Arnaud BLOUIN
Method Summary |
void |
onObjectModified(java.lang.Object object)
Executes the mapping for the modification of an object. |
void |
onObjectReplaced(IUnary<?> object,
java.lang.Object replacedObject)
Executes the mapping when an object has been replaced by an other one. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TempShape2TempViewMapping
public TempShape2TempViewMapping(IUnary<IShape> source,
IUnary<IViewShape> target)
Unary2UnaryMapping.Unary2UnaryMapping(IUnary, IUnary)
onObjectModified
public void onObjectModified(java.lang.Object object)
- Description copied from interface:
IMapping
- Executes the mapping for the modification of an object.
- Parameters:
object
- The modified object.
onObjectReplaced
public void onObjectReplaced(IUnary<?> object,
java.lang.Object replacedObject)
- Description copied from interface:
IMapping
- Executes the mapping when an object has been replaced by an other one.
- Parameters:
object
- The singleton that contains the new object.replacedObject
- The old object contained in the singleton that has been replaced.