|
|||||||||
| 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.LegendBarSymbol
public class LegendBarSymbol extends LegendSymbol
| Modifier and Type | Field and Description |
|---|
| Fields inherited from class lt.monarch.chart.engine.LegendSymbol |
|---|
paintStyle |
| Constructor and Description |
|---|
LegendBarSymbol(Shape2D shape,
Style style)
Constructs a new BarSeriesLegendSymbol object. |
LegendBarSymbol(java.lang.String tag,
Shape2D shape,
Style style)
Constructs a new BarSeriesLegendSymbol object. |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(AbstractGraphics g,
Style legendStyle,
Rectangle2D r,
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. |
void |
setShape(Shape2D shape)
Sets shape of the bar |
| 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 |
| Constructor Detail |
|---|
public LegendBarSymbol(Shape2D shape,
Style style)
shape - style - bar style
public LegendBarSymbol(java.lang.String tag,
Shape2D shape,
Style style)
tag - shape - style - bar style| Method Detail |
|---|
public void setShape(Shape2D shape)
shape - bar shapepublic 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 legendStyle,
Rectangle2D r,
PaintMode paintMode)
LegendSymbol
draw in class LegendSymbolg - graphics contextlegendStyle - legend stylesheet for common attributes, such a box symbol borderr - symbol boundspaintMode - paint mode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||