|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContentProducer
ContentProducer defines the interface for objects capable of producing
contents on behalf of a client context.
Primarely based on the Strategy pattern, the purpose of ContentProducers
is twofold:
Field Summary | |
---|---|
static java.lang.String |
ENTITY_ARROW_MODE
Entity name for the figure's current arrow mode |
static java.lang.String |
ENTITY_FIGURE_HEIGHT
Entity name for the figure's current height in pixels |
static java.lang.String |
ENTITY_FIGURE_POSX
Entity name for the figure's current x position in pixels |
static java.lang.String |
ENTITY_FIGURE_POSY
Entity name for the figure's current y position in pixels |
static java.lang.String |
ENTITY_FIGURE_WIDTH
Entity name for the figure's current width in pixels |
static java.lang.String |
ENTITY_FILL_COLOR
Entity name for the figure's current fill color |
static java.lang.String |
ENTITY_FONT_NAME
Entity name for the figure's current font name |
static java.lang.String |
ENTITY_FONT_SIZE
Entity name for the figure's current font size |
static java.lang.String |
ENTITY_FONT_STYLE
Entity name for the figure's current font style |
static java.lang.String |
ENTITY_FRAME_COLOR
Entity name for the figure's current text color |
Method Summary | |
---|---|
java.lang.Object |
getContent(ContentProducerContext context,
java.lang.String ctxAttrName,
java.lang.Object ctxAttrValue)
Produces the contents |
Methods inherited from interface org.jhotdraw.util.Storable |
---|
read, write |
Field Detail |
---|
static final java.lang.String ENTITY_FIGURE_POSX
static final java.lang.String ENTITY_FIGURE_POSY
static final java.lang.String ENTITY_FIGURE_WIDTH
static final java.lang.String ENTITY_FIGURE_HEIGHT
static final java.lang.String ENTITY_FRAME_COLOR
static final java.lang.String ENTITY_FILL_COLOR
static final java.lang.String ENTITY_ARROW_MODE
static final java.lang.String ENTITY_FONT_NAME
static final java.lang.String ENTITY_FONT_SIZE
static final java.lang.String ENTITY_FONT_STYLE
Method Detail |
---|
java.lang.Object getContent(ContentProducerContext context, java.lang.String ctxAttrName, java.lang.Object ctxAttrValue)
context
- the calling client contextctxAttrName
- the attribute namectxAttrValue
- the attribute value that led to the call to this
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |