http://www.jpicedt.org

jpicedt.format.output.eepic
Class TextView

java.lang.Object
  extended by jpicedt.graphic.view.AbstractView
      extended by jpicedt.graphic.view.LeafElementView
          extended by jpicedt.graphic.view.TextView
              extended by jpicedt.format.output.eepic.TextView
All Implemented Interfaces:
View

public class TextView
extends TextView

a View for rendering Text's : only rectangular frame boxes (through \\makebox and rel.) are supported, + no filling + only black stroke. Alignment : - no frame : left, right or center ; top, bottom or center - frame : left + baseline. (i.e. \\framebox{text} doesn't allow alignment specification if the box size is to be computed by LaTeX itself)

Since:
jPicEdt 1.3.2
Version:
$Id: TextView.java,v 1.5 2013/03/27 07:10:20 vincentb1 Exp $
Author:
Sylvain Reynal

Field Summary
 
Fields inherited from class jpicedt.graphic.view.TextView
strx, stry, textLayout, tl2ModelTr
 
Fields inherited from class jpicedt.graphic.view.LeafElementView
attrFactory, interiorPaint, leftArrow, outlinePaint, outlineStroke, overstrikeStroke, rightArrow, shadow, shadowPaint, shape
 
Fields inherited from class jpicedt.graphic.view.AbstractView
bounds, element, highlighter
 
Constructor Summary
TextView(PicText te, EepicViewFactory f)
          construct a new View for the given PicRectangle
 
Method Summary
protected  double getRotation()
          Returns the text rotation in radians : we return 0, since eepic doesn't support rotating text This is used by syncShape to compute the current tl2ModelTr AffineTransform
protected  void syncFrame()
          update frame shape : all frames are drawn as a rectangle
protected  void syncStringLocationX()
          update strx
protected  void syncStringLocationY()
          update stry
 
Methods inherited from class jpicedt.graphic.view.TextView
changedUpdate, getElement, getTextLayout, getTextToModelTransform, hitTest, intersect, paint, syncBounds, syncShape
 
Methods inherited from class jpicedt.graphic.view.LeafElementView
syncArrowsAttributes, syncArrowsGeometry, syncAttributes, syncShadow
 
Methods inherited from class jpicedt.graphic.view.AbstractView
getBounds, getContainer, getDrawing, getGraphics, getHighlighter, getParentView, getViewFactory, hitTest, intersect, paintHighlighter, repaint, setElement, setHighlighter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextView

public TextView(PicText te,
                EepicViewFactory f)
construct a new View for the given PicRectangle

Method Detail

getRotation

protected double getRotation()
Returns the text rotation in radians : we return 0, since eepic doesn't support rotating text This is used by syncShape to compute the current tl2ModelTr AffineTransform

Overrides:
getRotation in class TextView

syncFrame

protected void syncFrame()
update frame shape : all frames are drawn as a rectangle

Overrides:
syncFrame in class TextView

syncStringLocationX

protected void syncStringLocationX()
update strx

Overrides:
syncStringLocationX in class TextView

syncStringLocationY

protected void syncStringLocationY()
update stry

Overrides:
syncStringLocationY in class TextView

http://www.jpicedt.org

Submit a bug : syd@jpicedt.org