Package jpicedt.format.output.eepic
Class EepicViewFactory.TextView
- java.lang.Object
-
- jpicedt.graphic.view.AbstractView
-
- jpicedt.graphic.view.DefaultViewFactory.LeafElementView
-
- jpicedt.graphic.view.DefaultViewFactory.TextView
-
- jpicedt.format.output.eepic.EepicViewFactory.TextView
-
- All Implemented Interfaces:
View,ViewConstants
- Enclosing class:
- EepicViewFactory
public class EepicViewFactory.TextView extends DefaultViewFactory.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)
-
-
Field Summary
-
Fields inherited from class jpicedt.graphic.view.DefaultViewFactory.TextView
strx, stry, textLayout, tl2ModelTr
-
Fields inherited from class jpicedt.graphic.view.DefaultViewFactory.LeafElementView
interiorPaint, lineWidth, outlinePaint, outlineStroke, overStrikeWidth, shadowBounds, shape
-
Fields inherited from class jpicedt.graphic.view.AbstractView
bounds, element, highlighter
-
Fields inherited from interface jpicedt.graphic.view.ViewConstants
BARBELL_SIZE, CLICK_DISTANCE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected doublegetRotation()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 AffineTransformprotected voidsyncFrame()update frame shape : all frames are drawn as a rectangleprotected voidsyncStringLocationX()update strxprotected voidsyncStringLocationY()update stry-
Methods inherited from class jpicedt.graphic.view.DefaultViewFactory.TextView
changedUpdate, getTextLayout, getTextToModelTransform, hitTest, paint, syncBounds, syncShape
-
Methods inherited from class jpicedt.graphic.view.DefaultViewFactory.LeafElementView
getViewFactory, syncAttributes
-
Methods inherited from class jpicedt.graphic.view.AbstractView
getBounds, getContainer, getDrawing, getElement, getGraphics, getHighlighter, getParentView, hitTest, paintHighlighter, repaint, setElement, setHighlighter
-
-
-
-
Constructor Detail
-
TextView
public TextView(PicText te)
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:
getRotationin classDefaultViewFactory.TextView
-
syncFrame
protected void syncFrame()
update frame shape : all frames are drawn as a rectangle- Overrides:
syncFramein classDefaultViewFactory.TextView
-
syncStringLocationX
protected void syncStringLocationX()
update strx- Overrides:
syncStringLocationXin classDefaultViewFactory.TextView
-
syncStringLocationY
protected void syncStringLocationY()
update stry- Overrides:
syncStringLocationYin classDefaultViewFactory.TextView
-
-