net.sf.latexdraw.glib.models.interfaces
Class DrawingTK

java.lang.Object
  extended by net.sf.latexdraw.glib.models.interfaces.DrawingTK

public final class DrawingTK
extends java.lang.Object

This class contains the factory that must be used to create shape instances.

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.

01/04/2011

Since:
3.0
Version:
3.0
Author:
Arnaud BLOUIN

Field Summary
private static IShapeFactory factory
          The factory.
 
Constructor Summary
private DrawingTK()
           
 
Method Summary
static IShapeFactory getFactory()
           
static void setFactory(IShapeFactory factory)
          Sets the new factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factory

private static IShapeFactory factory
The factory.

Constructor Detail

DrawingTK

private DrawingTK()
Method Detail

setFactory

public static void setFactory(IShapeFactory factory)
Sets the new factory.

Parameters:
factory - The new factory.
Since:
3.0

getFactory

public static IShapeFactory getFactory()
Returns:
The current factory. Can be null.
Since:
3.0