public class EepicViewFactory extends DefaultViewFactory
| Modifier and Type | Class and Description |
|---|---|
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.
|
DefaultViewFactory.LeafElementView, DefaultViewFactory.ParallelogramView, DefaultViewFactory.PicNodeConnectionView, DefaultViewFactory.TextViewHybrid| Modifier and Type | Field and Description |
|---|---|
protected static java.awt.Color |
EEPIC_BLACKEN |
protected static java.awt.Color |
EEPIC_COLOR |
protected static java.awt.Color |
EEPIC_SHADE |
protected static java.awt.Color |
EEPIC_STROKE |
protected static java.awt.Color |
EEPIC_WHITEN |
KEY_TEXT_FONT, TEXT_FONT_DEFAULT, TEXT_FONT_SCALE, textFontARROW_GLOBAL_SCALE_LENGTH, ARROW_GLOBAL_SCALE_WIDTH, ARROW_INSET_SCALE, ARROW_LENGTH_SCALE, ARROW_WIDTH_LINEWIDTH_SCALE, ARROW_WIDTH_MINIMUM_MM, BRACKET_LENGTH_SCALE, 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, MIDDLE, NONE, OUTER, OVER_STRIKE, OVER_STRIKE_COLOR, OVER_STRIKE_WIDTH, POLYDOTS_ANGLE, POLYDOTS_CIRCLE, POLYDOTS_DISK, POLYDOTS_PENTAGON, POLYDOTS_PENTAGON_FILLED, POLYDOTS_PLUS, POLYDOTS_SCALE_H, POLYDOTS_SCALE_V, POLYDOTS_SIZE_LINEWIDTH_SCALE, POLYDOTS_SIZE_MINIMUM_MM, POLYDOTS_SQUARE, POLYDOTS_SQUARE_FILLED, POLYDOTS_STYLE, POLYDOTS_SUPERIMPOSE, POLYDOTS_TRIANGLE, POLYDOTS_TRIANGLE_FILLED, PS_POINT, PST_CUSTOM, RBRACKET_LENGTH_SCALE, RIGHT_ARROW, SHADOW, SHADOW_ANGLE, SHADOW_COLOR, SHADOW_SIZE, SOLID, TBAR_WIDTH_LINEWIDTH_SCALE, TBAR_WIDTH_MINIMUM_MM, TEXT_BOX_CIRCLE, TEXT_BOX_NO_FRAME, TEXT_BOX_OVAL, TEXT_BOX_RECTANGLE, TEXT_FRAME, TEXT_HALIGN_CENTER, TEXT_HALIGN_LEFT, TEXT_HALIGN_RIGHT, TEXT_HOR_ALIGN, TEXT_ROTATION, TEXT_VALIGN_BASELINE, TEXT_VALIGN_BOTTOM, TEXT_VALIGN_CENTER, TEXT_VALIGN_TOP, TEXT_VERT_ALIGN, VLINES, VLINES_FILLED| Constructor and Description |
|---|
EepicViewFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected Arrow |
createArrow(PicAttributeSet set,
PicAttributeName direction) |
protected java.awt.Paint |
createPaintForInterior(PicAttributeSet set)
Returns a Paint object from the given attributes, that is suited for painting the interior of a shape.
|
protected java.awt.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 java.awt.Stroke |
createStroke(PicAttributeSet set) |
View |
createView(Element element) |
protected void |
paintHatches(java.awt.Graphics2D g,
PicAttributeSet set,
java.awt.Shape shape)
paint hatches (vlines,...) depending on the FILL_STYLE attributes of the given set.
|
protected void |
paintOverStrike(java.awt.Graphics2D g,
PicAttributeSet set,
java.awt.Shape shape)
paint overstrike ; overriden to do nothing
|
protected void |
paintShadow(java.awt.Graphics2D g,
PicAttributeSet set,
java.awt.Shape shape)
paint shadow ; overriden to do nothing, since eepic and LaTeX don't support shadowing
|
configure, mainprotected static final java.awt.Color EEPIC_STROKE
protected static final java.awt.Color EEPIC_WHITEN
protected static final java.awt.Color EEPIC_SHADE
protected static final java.awt.Color EEPIC_BLACKEN
protected static final java.awt.Color EEPIC_COLOR
public View createView(Element element)
createView in interface ViewFactorycreateView in class DefaultViewFactoryprotected java.awt.Stroke createStroke(PicAttributeSet set)
createStroke in class DefaultViewFactoryprotected java.awt.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 java.awt.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 DefaultViewFactoryprotected void paintHatches(java.awt.Graphics2D g,
PicAttributeSet set,
java.awt.Shape shape)
paintHatches in class DefaultViewFactoryshape - used to clip the hatch (ie the shape the calling view must render)protected void paintShadow(java.awt.Graphics2D g,
PicAttributeSet set,
java.awt.Shape shape)
paintShadow in class DefaultViewFactoryset - used to fetch the shadow attributesshape - the Shape under which to drop a shadowprotected void paintOverStrike(java.awt.Graphics2D g,
PicAttributeSet set,
java.awt.Shape shape)
paintOverStrike in class DefaultViewFactoryset - used to fetch the overstrike attributesshape - the Shape to overstrikeprotected Arrow createArrow(PicAttributeSet set, PicAttributeName direction)
createArrow in class DefaultViewFactorydirection - LEFT_ARROW or RIGHT_ARROWSubmit a bug : syd@jpicedt.org