http://www.jpicedt.org

jpicedt.format.output.tikz
Class TikzViewFactory

java.lang.Object
  extended by jpicedt.graphic.view.DefaultViewFactory
      extended by jpicedt.format.output.tikz.TikzViewFactory
All Implemented Interfaces:
AttributesViewFactory, ViewFactory

public class TikzViewFactory
extends DefaultViewFactory

Fabrique de View pour le type de contenu TikZ.

Since:
jPicEdt 1.6
Version:
$Id: TikzViewFactory.java,v 1.6 2013/03/27 07:08:22 vincentb1 Exp $
Author:
Vincent Belaïche

Field Summary
 
Fields inherited from class jpicedt.graphic.view.DefaultViewFactory
factoryMap, KEY_TEXT_FONT, TEXT_FONT_DEFAULT, TEXT_FONT_SCALE, textFont
 
Constructor Summary
TikzViewFactory()
           
 
Method Summary
static void configure(Properties preferences)
          La méthode configure est appelée lorsque les préférences utilisateurs sont mises à jour.
 ArrowView createArrow(PicAttributeSet set, PicAttributeName<StyleConstants.ArrowStyle> direction)
          Returns an ArrowView for rendering arrow-related attributes using the given attribute set.
 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.graphic.view.DefaultViewFactory
createPaintForInterior, createPaintForOutline, createPaintForShadow, createShadow, createStroke, createStrokeForOverstrike, getMappedClass, main, map, paintHatches, toString, unmap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TikzViewFactory

public TikzViewFactory()
Method Detail

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 DefaultViewFactory
Returns:
une View pour l'élément passé en argument. Ceci permet de renvoyer une vue spécifique à Tikz pour certaine classe d'objet graphique. Par défaut appelle la superclass sinon.
Since:
jPicEdt 1.6

configure

public static void configure(Properties preferences)
La méthode configure est appelée lorsque les préférences utilisateurs sont mises à jour.

Parameters:
preferences - une valeur Properties utilsier pour lire les préférences utilisateur. Si null, les valeurs par défaut sont utilisées.

createArrow

public ArrowView createArrow(PicAttributeSet set,
                             PicAttributeName<StyleConstants.ArrowStyle> direction)
Description copied from interface: AttributesViewFactory
Returns an ArrowView for rendering arrow-related attributes using the given attribute set.

Specified by:
createArrow in interface AttributesViewFactory
Overrides:
createArrow in class DefaultViewFactory
Parameters:
direction - LEFT_ARROW ou RIGHT_ARROW.
Returns:
une ArrowView déduite du PicAttributeSet set passé en argument, ou null si le style de la flèche est ArrowStyle.NONE.

http://www.jpicedt.org

Submit a bug : syd@jpicedt.org