Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jpicedt.format.latex
Class LatexViewFactory  view LatexViewFactory download LatexViewFactory.java

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

public class LatexViewFactory
extends jpicedt.format.eepic.EepicViewFactory
implements LatexConstants

A factory to create a View for a given Element when the underlying content type is LaTeX (i.e. picture env.) This is essentially based on Epic/Eepic behaviour, except for filling shapes (only small circles and rectangles can be filled).

Since:
jPicEdt 1.3.2

Nested Class Summary
 class LatexViewFactory.EllipseView
          view for ellipse specific to the LaTeX picture environment.
 class LatexViewFactory.PolygonView
          view for polygons.
 
Nested classes inherited from class jpicedt.format.eepic.EepicViewFactory
jpicedt.format.eepic.EepicViewFactory.CubicBezierView, jpicedt.format.eepic.EepicViewFactory.QuadBezierView, jpicedt.format.eepic.EepicViewFactory.TextView
 
Nested classes inherited from class jpicedt.graphic.view.DefaultViewFactory
jpicedt.graphic.view.DefaultViewFactory.CompositeView, jpicedt.graphic.view.DefaultViewFactory.LeafElementView, jpicedt.graphic.view.DefaultViewFactory.RectangleView
 
Field Summary
protected static java.awt.Color LATEX_FILL
          color for interior
protected static java.awt.Color LATEX_STROKE
          color for outlines
(package private) static double maxLatexDiskDiameter
           
 
Fields inherited from class jpicedt.format.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, textFont
 
Fields inherited from interface jpicedt.format.latex.LatexConstants
CR_LF, DEFAULT_EM_LINE_LENGTH, DEFAULT_FILE_WRAPPER_EPILOG, DEFAULT_FILE_WRAPPER_PROLOG, DEFAULT_LINE_THICKNESS, 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_LINE_THICKNESS, KEY_MAX_CIRCLE_DIAMETER, KEY_MAX_DISK_DIAMETER, KEY_MAX_EM_CIRCLE_SEGMENT_LENGTH, KEY_MAX_EM_LINE_SLOPE
 
Fields inherited from interface jpicedt.graphic.model.PicObjectConstants
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, MaxAttributeNameIndex, MIDDLE, NONE, OUTER, POLYGON_DOTS, POLYGON_SOLID, POLYGON_STYLE, PS_POINT, RIGHT_ARROW, SHADOW, SHADOW_ANGLE, SHADOW_COLOR, SHADOW_SIZE, SOLID, VLINES, VLINES_FILLED
 
Constructor Summary
LatexViewFactory()
           
 
Method Summary
static void configure(java.util.Properties preferences)
          Configure static fields using the given Properties object
protected  java.awt.Paint createPaintForInterior(jpicedt.graphic.model.PicAttributeSet set)
           
 jpicedt.graphic.view.View createView(jpicedt.graphic.model.Element element)
           
 
Methods inherited from class jpicedt.format.eepic.EepicViewFactory
createArrow, createDotsForPolygons, createPaintForOutline, createStroke, paintHatches, 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 java.awt.Color LATEX_STROKE
color for outlines


LATEX_FILL

protected static final java.awt.Color LATEX_FILL
color for interior


maxLatexDiskDiameter

static double maxLatexDiskDiameter
Constructor Detail

LatexViewFactory

public LatexViewFactory()
Method Detail

configure

public static void configure(java.util.Properties preferences)
Configure static fields using the given Properties object


createView

public jpicedt.graphic.view.View createView(jpicedt.graphic.model.Element element)
Specified by:
createView in interface jpicedt.graphic.view.ViewFactory

createPaintForInterior

protected java.awt.Paint createPaintForInterior(jpicedt.graphic.model.PicAttributeSet set)