http://www.jpicedt.org

jpicedt.format.output.latex
Class LatexViewFactory

java.lang.Object
  extended byjpicedt.graphic.view.DefaultViewFactory
      extended byjpicedt.format.output.eepic.EepicViewFactory
          extended byjpicedt.format.output.latex.LatexViewFactory
All Implemented Interfaces:
LatexConstants, PicObjectConstants, ViewFactory

public class LatexViewFactory
extends EepicViewFactory
implements LatexConstants

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.10.2.1 2007/09/02 11:55:13 reynal Exp $

Author:
Sylvain Reynal

Nested Class Summary
 class LatexViewFactory.AbstractCurveView
          a View for rendering any concrete implementation of jpicedt.graphic.model.AbstractCurve LaTeX-picture environment does not allow filling such shapes.
 class LatexViewFactory.EllipseView
          view for ellipse specific to the LaTeX picture environment.
 class LatexViewFactory.ParallelogramView
          a View for rendering parallelograms.
 
Nested classes inherited from class jpicedt.format.output.eepic.EepicViewFactory
EepicViewFactory.TextView
 
Nested classes inherited from class jpicedt.graphic.view.DefaultViewFactory
DefaultViewFactory.LeafElementView, DefaultViewFactory.PicNodeConnectionView, DefaultViewFactory.TextViewHybrid
 
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
KEY_TEXT_FONT, TEXT_FONT_DEFAULT, TEXT_FONT_SCALE, textFont
 
Fields inherited from interface jpicedt.format.output.latex.LatexConstants
CR_LF, DEFAULT_EM_LINE_LENGTH, DEFAULT_FILE_WRAPPER_EPILOG, DEFAULT_FILE_WRAPPER_PROLOG, DEFAULT_MAX_CIRCLE_DIAMETER, DEFAULT_MAX_DISK_DIAMETER, DEFAULT_MAX_EM_CIRCLE_SEGMENT_LENGTH, DEFAULT_MAX_EM_LINE_SLOPE, KEY_EM_LINE_LENGTH, KEY_FILE_WRAPPER_EPILOG, KEY_FILE_WRAPPER_PROLOG, KEY_MAX_CIRCLE_DIAMETER, KEY_MAX_DISK_DIAMETER, KEY_MAX_EM_CIRCLE_SEGMENT_LENGTH, KEY_MAX_EM_LINE_SLOPE, RESCALING_TEX_FUNCTION
 
Fields inherited from interface jpicedt.graphic.model.PicObjectConstants
ARROW_GLOBAL_SCALE_LENGTH, ARROW_GLOBAL_SCALE_WIDTH, ARROW_INSET_SCALE, ARROW_LENGTH_SCALE, ARROW_WIDTH_LINEWIDTH_SCALE, ARROW_WIDTH_MINIMUM_MM, BRACKET_LENGTH_SCALE, CROSSHATCH, CROSSHATCH_FILLED, DASH_OPAQUE, DASH_TRANSPARENT, DASH1, DASH2, DASH3, DASHED, DIMEN, DOT_SEP, DOT_SEP1, DOT_SEP2, DOT_SEP3, DOTTED, DOUBLE_COLOR, DOUBLE_LINE, DOUBLE_SEP, FILL_COLOR, FILL_STYLE, HATCH_ANGLE, HATCH_COLOR, HATCH_SEP, HATCH_WIDTH, HLINES, HLINES_FILLED, INNER, LEFT_ARROW, LINE_COLOR, LINE_STYLE, LINE_WIDTH, MIDDLE, NONE, OUTER, OVER_STRIKE, OVER_STRIKE_COLOR, OVER_STRIKE_WIDTH, POLYDOTS_ANGLE, POLYDOTS_CIRCLE, POLYDOTS_DISK, POLYDOTS_PENTAGON, POLYDOTS_PENTAGON_FILLED, POLYDOTS_PLUS, POLYDOTS_SCALE_H, POLYDOTS_SCALE_V, POLYDOTS_SIZE_LINEWIDTH_SCALE, POLYDOTS_SIZE_MINIMUM_MM, POLYDOTS_SQUARE, POLYDOTS_SQUARE_FILLED, POLYDOTS_STYLE, POLYDOTS_SUPERIMPOSE, POLYDOTS_TRIANGLE, POLYDOTS_TRIANGLE_FILLED, PS_POINT, PST_CUSTOM, RBRACKET_LENGTH_SCALE, RIGHT_ARROW, SHADOW, SHADOW_ANGLE, SHADOW_COLOR, SHADOW_SIZE, SOLID, TBAR_WIDTH_LINEWIDTH_SCALE, TBAR_WIDTH_MINIMUM_MM, TEXT_BOX_CIRCLE, TEXT_BOX_NO_FRAME, TEXT_BOX_OVAL, TEXT_BOX_RECTANGLE, TEXT_FRAME, TEXT_HALIGN_CENTER, TEXT_HALIGN_LEFT, TEXT_HALIGN_RIGHT, TEXT_HOR_ALIGN, TEXT_ROTATION, TEXT_VALIGN_BASELINE, TEXT_VALIGN_BOTTOM, TEXT_VALIGN_CENTER, TEXT_VALIGN_TOP, TEXT_VERT_ALIGN, VLINES, VLINES_FILLED
 
Constructor Summary
LatexViewFactory()
           
 
Method Summary
static void configure(Properties preferences)
          Configure static fields using the given Properties object
protected  Paint createPaintForInterior(PicAttributeSet set)
          Returns LATEX_FILL, ie black filling only is allowed.
 View createView(Element element)
           
 
Methods inherited from class jpicedt.format.output.eepic.EepicViewFactory
createArrow, createPaintForOutline, createStroke, paintHatches, paintOverStrike, paintShadow
 
Methods inherited from class jpicedt.graphic.view.DefaultViewFactory
main
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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


createView

public View createView(Element element)
Specified by:
createView in interface ViewFactory
Overrides:
createView in class EepicViewFactory
Returns:
a View for the given Element

createPaintForInterior

protected Paint createPaintForInterior(PicAttributeSet set)
Returns LATEX_FILL, ie black filling only is allowed.

Overrides:
createPaintForInterior in class EepicViewFactory
Returns:
a Paint from the given attributes, suited for painting "interior"

http://www.jpicedt.org

Submit a bug : syd@jpicedt.org