|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AttributesViewFactory
A factory to create objects related to Element's attributes, eg, BasicStroke's or Paint's objets. This may be considered a helper class for View's implementations and their hosting ViewFactory.
Method Summary | |
---|---|
ArrowView |
createArrow(PicAttributeSet set,
PicAttributeName<StyleConstants.ArrowStyle> direction)
Returns an ArrowView for rendering arrow-related attributes using the given attribute set. |
Paint |
createPaintForInterior(PicAttributeSet set)
Returns a Paint object from the given attributes, that is suited for painting the interior of a shape. |
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. |
Paint |
createPaintForShadow(PicAttributeSet set)
Returns a Paint object suited for rendering shadows. |
Shape |
createShadow(PicAttributeSet set,
Shape shape)
Returns a Shape for rendering the shadow of the given Shape, whose properties are drawn from the SHADOW attribute and related attribs. |
BasicStroke |
createStroke(PicAttributeSet set)
Returns a Stroke built from the given attributes ; null if LINE_STYLE=NONE. |
BasicStroke |
createStrokeForOverstrike(PicAttributeSet set)
Returns a Stroke built from the OVER_STRIKE attribute. |
void |
paintHatches(Graphics2D g,
PicAttributeSet set,
Shape shape)
paint hatches (vlines,...) depending on the FILL_STYLE attributes of the given set. |
Method Detail |
---|
BasicStroke createStroke(PicAttributeSet set)
set
- used to fetch the LINE_STYLE attributesBasicStroke createStrokeForOverstrike(PicAttributeSet set)
set
- used to fetch the OVER_STRIKE and related attributesPaint createPaintForOutline(PicAttributeSet set)
set
- used to fetch the LINE_COLOR attributesPaint createPaintForShadow(PicAttributeSet set)
set
- used to fetch the SHADOW and related attributesPaint createPaintForInterior(PicAttributeSet set)
The returned object should depend on the FILL_STYLE and FILL_COLOR attributes of the given set.
set
- used to fetch the SHADOW and related attributesvoid paintHatches(Graphics2D g, PicAttributeSet set, Shape shape)
shape
- used to clip the hatch (ie the shape the calling view must render)Shape createShadow(PicAttributeSet set, Shape shape)
shape
- the Shape under which to drop a shadowset
- used to fetch the shadow attributes
ArrowView createArrow(PicAttributeSet set, PicAttributeName<StyleConstants.ArrowStyle> direction)
direction
- LEFT_ARROW or RIGHT_ARROW
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |