From: <gog...@us...> - 2009-03-24 13:03:46
|
Revision: 14519 http://cdk.svn.sourceforge.net/cdk/?rev=14519&view=rev Author: goglepox Date: 2009-03-24 13:03:31 +0000 (Tue, 24 Mar 2009) Log Message: ----------- Added zoom event methods and removed some traling spaces Modified Paths: -------------- cdk/branches/jchempaint-primary/src/main/org/openscience/cdk/controller/IChemModelEventRelayHandler.java cdk/branches/jchempaint-primary/src/main/org/openscience/cdk/controller/IChemModelRelay.java Modified: cdk/branches/jchempaint-primary/src/main/org/openscience/cdk/controller/IChemModelEventRelayHandler.java =================================================================== --- cdk/branches/jchempaint-primary/src/main/org/openscience/cdk/controller/IChemModelEventRelayHandler.java 2009-03-24 13:03:07 UTC (rev 14518) +++ cdk/branches/jchempaint-primary/src/main/org/openscience/cdk/controller/IChemModelEventRelayHandler.java 2009-03-24 13:03:31 UTC (rev 14519) @@ -53,4 +53,6 @@ * Signals that a selection was added, removed or changed. */ public void selectionChanged(); + + public void zoomChanged(); } Modified: cdk/branches/jchempaint-primary/src/main/org/openscience/cdk/controller/IChemModelRelay.java =================================================================== --- cdk/branches/jchempaint-primary/src/main/org/openscience/cdk/controller/IChemModelRelay.java 2009-03-24 13:03:07 UTC (rev 14518) +++ cdk/branches/jchempaint-primary/src/main/org/openscience/cdk/controller/IChemModelRelay.java 2009-03-24 13:03:31 UTC (rev 14519) @@ -59,7 +59,7 @@ /* Event model */ public void setEventHandler(IChemModelEventRelayHandler handler); - + public void fireZoomEvent(); /** * Adds an temporary atom which might be cleared later, when the final * atom is added. Controllers can use this to draw temporary atoms, for @@ -119,17 +119,17 @@ // public abstract void cleanupSelection(Selector sectionIdentifier); /* Editing actions for atoms */ - public IAtomContainer removeAtom(IAtom atom); - public IAtomContainer removeAtomWithoutUndo(IAtom atom); - public IAtom addAtom(String element, Point2d worldcoord); - public IAtom addAtomWithoutUndo(String element, Point2d worldcoord); - public IAtom addAtom(String element, IAtom atom); - public IAtom addAtomWithoutUndo(String element, IAtom atom); - public void moveToWithoutUndo(IAtom atom, Point2d point); - public void moveTo(IAtom atom, Point2d point); - public void setSymbol(IAtom atom, String symbol); - public void setCharge(IAtom atom, int charge); - public void setMassNumber(IAtom atom, int charge); + public abstract IAtomContainer removeAtom(IAtom atom); + public abstract IAtomContainer removeAtomWithoutUndo(IAtom atom); + public abstract IAtom addAtom(String element, Point2d worldcoord); + public abstract IAtom addAtomWithoutUndo(String element, Point2d worldcoord); + public abstract IAtom addAtom(String element, IAtom atom); + public abstract IAtom addAtomWithoutUndo(String element, IAtom atom); + public abstract void moveToWithoutUndo(IAtom atom, Point2d point); + public abstract void moveTo(IAtom atom, Point2d point); + public abstract void setSymbol(IAtom atom, String symbol); + public abstract void setCharge(IAtom atom, int charge); + public abstract void setMassNumber(IAtom atom, int charge); public void setHydrogenCount(IAtom atom, int intValue); public void replaceAtom(IAtom atomnew, IAtom atomold); public void addSingleElectron(IAtom atom); @@ -137,17 +137,17 @@ public void updateAtom(IAtom atom); /* Editing actions for bonds */ - public IBond addBond(IAtom fromAtom, IAtom toAtom); - public void removeBondWithoutUndo(IBond bond); - public void removeBond(IBond bond); - public void moveToWithoutUndo(IBond bond, Point2d point); - public void moveTo(IBond bond, Point2d point); - public void setOrder(IBond bond, IBond.Order order); - public void setWedgeType(IBond bond, int type); - public void addNewBond(Point2d worldCoordinate); + public abstract IBond addBond(IAtom fromAtom, IAtom toAtom); + public abstract void removeBondWithoutUndo(IBond bond); + public abstract void removeBond(IBond bond); + public abstract void moveToWithoutUndo(IBond bond, Point2d point); + public abstract void moveTo(IBond bond, Point2d point); + public abstract void setOrder(IBond bond, IBond.Order order); + public abstract void setWedgeType(IBond bond, int type); + public abstract void addNewBond(Point2d worldCoordinate); public void cycleBondValence(IBond bond); public void makeBondStereo(IBond bond, Direction desiredDirection); - public IBond makeNewStereoBond(IAtom atom, Direction desiredDirection); + public void makeNewStereoBond(IAtom atom, Direction desiredDirection); public IUndoRedoFactory getUndoRedoFactory(); public UndoRedoHandler getUndoRedoHandler(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |