|
JClass 4.5.0 API Documentation |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JCLegendRenderer
is an interface implemented by a class that wishes
to help render the legend.
Method Summary | |
void |
drawLegendItem(Graphics gc,
Font useFont,
JCLegendItem thisItem)
Used for implementing custom legend item draws. |
void |
drawLegendItemSymbol(Graphics gc,
Font useFont,
JCLegendItem thisItem)
Used for implementing custom symbol draws for a legend item. |
Color |
getOutlineColor(JCLegendItem thisItem)
Retrieves the outline color to use when drawing the legend item's symbol. |
void |
setFillGraphics(Graphics gc,
JCLegendItem thisItem)
Called to set the provided Graphics object with the appropriate paint settings for use in drawing this legend item's symbol. |
Method Detail |
public void drawLegendItem(Graphics gc, Font useFont, JCLegendItem thisItem)
JCLegend.CUSTOM_ALL
.
If implemented, the method should draw both the symbol and text portions
of the specified legend item. If CUSTOM_ALL
is not used by this legend
implementation, simply return out of the method.gc
- Graphics object used to draw the legenduseFont
- the font being used in this legendthisItem
- the JCLegendItem
object representing the
legend item to draw.public void drawLegendItemSymbol(Graphics gc, Font useFont, JCLegendItem thisItem)
JCLegend.CUSTOM_SYMBOL
. If CUSTOM_SYMBOL
is not used by this legend
implementation, simply return out of the method.gc
- Graphics object used to draw the legenduseFont
- the font being used in this legendthisItem
- the JCLegendItem
object representing the
legend item to draw.public Color getOutlineColor(JCLegendItem thisItem)
thisItem
- the JCLegendItem
object representing the
legend item in questionpublic void setFillGraphics(Graphics gc, JCLegendItem thisItem)
gc
- the Graphics object to changethisItem
- the JCLegendItem object representing the legend
item in question
|
Copyright© 1999-2000 KL Group Inc. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |