|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.engine.LegendSymbol
lt.monarch.chart.legend.symbols.LegendBoxSymbol
public class LegendBoxSymbol extends LegendSymbol
Legend symbol to refer to the filled series. Draws a box, filled with the specified color.
| Modifier and Type | Field and Description |
|---|---|
protected PaintMode |
paintMode
|
protected Style |
style
stylesheet of the legend box symbol |
| Fields inherited from class lt.monarch.chart.engine.LegendSymbol |
|---|
paintStyle |
| Constructor and Description |
|---|
LegendBoxSymbol(java.awt.Color color)
Constructs a new symbol with explicit color constants. |
LegendBoxSymbol(Style style)
Constructs a new symbol from a stylesheet. |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(AbstractGraphics g,
Style style,
Rectangle2D bounds,
PaintMode paintMode)
Renders the symbol. |
int |
getPreferredHeight(AbstractGraphics g)
Gets the preferred height of this legend symbol. |
int |
getPreferredWidth(AbstractGraphics g)
Gets the preferred width of this legend symbol. |
Style |
getStyle()
|
| Methods inherited from class lt.monarch.chart.engine.LegendSymbol |
|---|
getReferencedEntity, setReferencedEntity |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Style style
protected PaintMode paintMode
| Constructor Detail |
|---|
public LegendBoxSymbol(Style style)
style - stylesheet style sheet to setpublic LegendBoxSymbol(java.awt.Color color)
color - toFill color| Method Detail |
|---|
public Style getStyle()
public int getPreferredHeight(AbstractGraphics g)
getPreferredHeight in class LegendSymbolg - graphics context for which the preferred height is to be calculatedpublic int getPreferredWidth(AbstractGraphics g)
getPreferredWidth in class LegendSymbolg - graphics context for which the preferred width is to be calculated
public void draw(AbstractGraphics g,
Style style,
Rectangle2D bounds,
PaintMode paintMode)
LegendSymbol
draw in class LegendSymbolg - graphics contextstyle - legend stylesheet for common attributes, such a box symbol borderbounds - symbol boundspaintMode - paint mode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||