http://www.jpicedt.org

jpicedt.format.output.latex
Class LatexViewFactory

java.lang.Object
  extended by jpicedt.graphic.view.DefaultViewFactory
      extended by jpicedt.format.output.eepic.EepicViewFactory
          extended by 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

Field Summary
protected static Color LATEX_FILL
          color for interior
protected static Color LATEX_STROKE
          color for outlines
 
Fields inherited from class jpicedt.format.output.eepic.EepicViewFactory
EEPIC_BLACKEN, EEPIC_COLOR, EEPIC_SHADE, EEPIC_STROKE, EEPIC_WHITEN
 
Fields inherited from class jpicedt.graphic.view.DefaultViewFactory
factoryMap, KEY_TEXT_FONT, TEXT_FONT_DEFAULT, TEXT_FONT_SCALE, textFont
 
Constructor Summary
LatexViewFactory()
           
 
Method Summary
static void configure(Properties preferences)
          Configure static fields using the given Properties object.
 Paint createPaintForInterior(PicAttributeSet set)
          Returns LATEX_FILL, ie black filling only is allowed.
 View createView(Element element)
          Create a View for the given Element by looking up the hashmap responsible for creating View's for Element's.
 
Methods inherited from class jpicedt.format.output.eepic.EepicViewFactory
createArrow, createPaintForOutline, createShadow, createStroke, createStrokeForOverstrike, paintHatches
 
Methods inherited from class jpicedt.graphic.view.DefaultViewFactory
createPaintForShadow, getMappedClass, main, map, toString, unmap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LATEX_STROKE

protected static final Color LATEX_STROKE
color for outlines


LATEX_FILL

protected static final Color LATEX_FILL
color for interior

Constructor Detail

LatexViewFactory

public LatexViewFactory()
Method Detail

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"

http://www.jpicedt.org

Submit a bug : syd@jpicedt.org