jpicedt.format.output.latex
Class LatexViewFactory
java.lang.Object
jpicedt.graphic.view.DefaultViewFactory
jpicedt.format.output.eepic.EepicViewFactory
jpicedt.format.output.latex.LatexViewFactory
- All Implemented Interfaces:
- AttributesViewFactory, ViewFactory
public class LatexViewFactory
- extends EepicViewFactory
Creates a View
for a given Element
when the underlying content type is the
LaTeX-picture environment.
- Since:
- jPicEdt 1.3.2
- Version:
- $Id: LatexViewFactory.java,v 1.19 2013/03/27 07:09:55 vincentb1 Exp $
- Author:
- Sylvain Reynal
LATEX_STROKE
protected static final Color LATEX_STROKE
- color for outlines
LATEX_FILL
protected static final Color LATEX_FILL
- color for interior
LatexViewFactory
public LatexViewFactory()
configure
public static void configure(Properties preferences)
- Configure static fields using the given
Properties
object.
- Parameters:
preferences
- used to read shared parameters
If null, default values are used.
createView
public View createView(Element element)
- Description copied from class:
DefaultViewFactory
- Create a View for the given
Element
by looking up the hashmap responsible for creating
View
's for Element
's.
- Specified by:
createView
in interface ViewFactory
- Overrides:
createView
in class EepicViewFactory
- Returns:
- a
View
for the given Element
.
createPaintForInterior
public Paint createPaintForInterior(PicAttributeSet set)
- Returns
LATEX_FILL
, ie black filling only is allowed.
- Specified by:
createPaintForInterior
in interface AttributesViewFactory
- Overrides:
createPaintForInterior
in class EepicViewFactory
- Parameters:
set
- used to fetch the SHADOW and related attributes
- Returns:
- a Paint from the given attributes, suited for painting "interior"
Submit a bug : syd@jpicedt.org