6 * $Date: 2012-07-04 23:09:19 +0200 (Mi, 04. Jul 2012) $
7 ***************************************************************/
10 * \brief Implementation of class ConstraintManager that handles
11 * drawing constraints.
16 * This file is part of the Open Graph Drawing Framework (OGDF).
20 * See README.txt in the root directory of the OGDF installation for details.
23 * This program is free software; you can redistribute it and/or
24 * modify it under the terms of the GNU General Public License
25 * Version 2 or 3 as published by the Free Software Foundation;
26 * see the file LICENSE.txt included in the packaging of this file
30 * This program is distributed in the hope that it will be useful,
31 * but WITHOUT ANY WARRANTY; without even the implied warranty of
32 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33 * GNU General Public License for more details.
36 * You should have received a copy of the GNU General Public
37 * License along with this program; if not, write to the Free
38 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
39 * Boston, MA 02110-1301, USA.
41 * \see http://www.gnu.org/copyleft/gpl.html
42 ***************************************************************/
44 //#include <ogdf/String.h>
45 #include <ogdf/basic/Constraints.h>
46 //#include <constraints/AnchorConstraint.h>
47 //#include <constraints/AlignmentConstraint.h>
48 //#include <constraints/SequenceConstraint.h>
52 Constraint
*ConstraintManager::createConstraintByName(const Graph
&G
, String
*name
)
54 // if ((*name) == "Anchor") return new AnchorConstraint(G); else
55 // if ((*name) == "Alignment") return new AlignmentConstraint(G,0.0); else
56 // if ((*name) == "Sequence") return new SequenceConstraint(G,true); else
60 String
ConstraintManager::getClassnameOfConstraint(Constraint
*c
) {
61 // if (c->getType()==AnchorConstraint::getStaticType()) return "Anchor";
62 // if (c->getType()==AlignmentConstraint::getStaticType()) return "Alignment";
63 // if (c->getType()==SequenceConstraint::getStaticType()) return "Sequence";