net.sf.latexdraw.glib.views
Class AbstractCodeView<S extends IShape>

java.lang.Object
  extended by net.sf.latexdraw.glib.views.AbstractView<S>
      extended by net.sf.latexdraw.glib.views.AbstractCodeView<S>
Type Parameters:
S - The type of the observed model.
All Implemented Interfaces:
IAbstractView
Direct Known Subclasses:
PSTShapeView

public abstract class AbstractCodeView<S extends IShape>
extends AbstractView<S>

Defines an abstract view for code-view.

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.

04/18/2008

Since:
3.0
Author:
Arnaud BLOUIN

Field Summary
protected  java.lang.StringBuilder cache
          The cache of the code.
 
Fields inherited from class net.sf.latexdraw.glib.views.AbstractView
shape
 
Constructor Summary
AbstractCodeView(S model)
          Creates and initialises an abstract code view.
 
Method Summary
protected  void emptyCache()
          Empties the cache.
 java.lang.StringBuilder getCache()
           
 
Methods inherited from class net.sf.latexdraw.glib.views.AbstractView
getShape
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.latexdraw.glib.views.IAbstractView
update
 

Field Detail

cache

protected java.lang.StringBuilder cache
The cache of the code.

Constructor Detail

AbstractCodeView

public AbstractCodeView(S model)
Creates and initialises an abstract code view.

Parameters:
model - The model to view.
Throws:
java.lang.IllegalArgumentException - If the given model is not valid.
Since:
3.0
Method Detail

emptyCache

protected void emptyCache()
Empties the cache.

Since:
3.0

getCache

public java.lang.StringBuilder getCache()
Returns:
the cache.
Since:
3.0