|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjpicedt.graphic.view.DefaultViewFactory
jpicedt.format.output.eepic.EepicViewFactory
A factory to create a View for a given Element when the content type for the model is Eepic.
| Nested Class Summary | |
class |
EepicViewFactory.AbstractCurveView
a View for rendering any concrete implementation of jpicedt.graphic.model.AbstractCurve eepic allows filling polygon only (using \\path macro). |
class |
EepicViewFactory.EllipseView
view for ellipses specific to the Epic/Eepic content type. |
class |
EepicViewFactory.TextView
a View for rendering Text's : only rectangular frame boxes (through \\makebox and rel.) are supported, + no filling + only black stroke. |
| Nested classes inherited from class jpicedt.graphic.view.DefaultViewFactory |
DefaultViewFactory.LeafElementView, DefaultViewFactory.ParallelogramView, DefaultViewFactory.PicNodeConnectionView, DefaultViewFactory.TextViewHybrid |
| Field Summary | |
protected static Color |
EEPIC_BLACKEN
|
protected static Color |
EEPIC_COLOR
|
protected static Color |
EEPIC_SHADE
|
protected static Color |
EEPIC_STROKE
|
protected static Color |
EEPIC_WHITEN
|
| Fields inherited from class jpicedt.graphic.view.DefaultViewFactory |
KEY_TEXT_FONT, TEXT_FONT_DEFAULT, TEXT_FONT_SCALE, textFont |
| Constructor Summary | |
EepicViewFactory()
|
|
| Method Summary | |
protected Arrow |
createArrow(PicAttributeSet set,
PicAttributeName direction)
|
protected Paint |
createPaintForInterior(PicAttributeSet set)
Returns a Paint object from the given attributes, that is suited for painting the interior of a shape. |
protected Paint |
createPaintForOutline(PicAttributeSet set)
Returns a Paint object from the given attributes, that is suited for painting an outline, or null if LINE_STYLE is NONE. |
protected Stroke |
createStroke(PicAttributeSet set)
|
View |
createView(Element element)
|
protected void |
paintHatches(Graphics2D g,
PicAttributeSet set,
Shape shape)
paint hatches (vlines,...) depending on the FILL_STYLE attributes of the given set. |
protected void |
paintOverStrike(Graphics2D g,
PicAttributeSet set,
Shape shape)
paint overstrike ; overriden to do nothing |
protected void |
paintShadow(Graphics2D g,
PicAttributeSet set,
Shape shape)
paint shadow ; overriden to do nothing, since eepic and LaTeX don't support shadowing |
| Methods inherited from class jpicedt.graphic.view.DefaultViewFactory |
configure, main |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final Color EEPIC_STROKE
protected static final Color EEPIC_WHITEN
protected static final Color EEPIC_SHADE
protected static final Color EEPIC_BLACKEN
protected static final Color EEPIC_COLOR
| Constructor Detail |
public EepicViewFactory()
| Method Detail |
public View createView(Element element)
createView in interface ViewFactorycreateView in class DefaultViewFactoryprotected Stroke createStroke(PicAttributeSet set)
createStroke in class DefaultViewFactoryprotected Paint createPaintForOutline(PicAttributeSet set)
DefaultViewFactoryAll currently supported attributes for painting an outline are rendered. It's up to subclassers to adapt this behavior to their need (probably by restricting it).
createPaintForOutline in class DefaultViewFactoryprotected Paint createPaintForInterior(PicAttributeSet set)
DefaultViewFactoryThe returned object depends on the FILL_STYLE and FILL_COLOR attributes of the given set:
jpicedt.graphic.model.PicObjectConstants) for painting the interior of shapes
are rendered. [pending] gradient (need to add some attributes).
createPaintForInterior in class DefaultViewFactory
protected void paintHatches(Graphics2D g,
PicAttributeSet set,
Shape shape)
paintHatches in class DefaultViewFactoryshape - used to clip the hatch (ie the shape the calling view must render)
protected void paintShadow(Graphics2D g,
PicAttributeSet set,
Shape shape)
paintShadow in class DefaultViewFactoryshape - the Shape under which to drop a shadowset - used to fetch the shadow attributes
protected void paintOverStrike(Graphics2D g,
PicAttributeSet set,
Shape shape)
paintOverStrike in class DefaultViewFactoryshape - the Shape to overstrikeset - used to fetch the overstrike attributes
protected Arrow createArrow(PicAttributeSet set,
PicAttributeName direction)
createArrow in class DefaultViewFactorydirection - LEFT_ARROW or RIGHT_ARROW
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||