|
|||||||||
| 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.LegendMarkerSymbol
lt.monarch.chart.legend.symbols.LegendLineSymbol
public class LegendLineSymbol extends LegendMarkerSymbol
Legend symbol to refer to the outlined series. Draws a line with an optional marker on it.
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
connected
|
| Fields inherited from class lt.monarch.chart.legend.symbols.LegendMarkerSymbol |
|---|
marker |
| Fields inherited from class lt.monarch.chart.engine.LegendSymbol |
|---|
paintStyle |
| Constructor and Description |
|---|
LegendLineSymbol(Style style)
Constructs a new symbol with explicit style. |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(AbstractGraphics g,
Style legendStyle,
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. |
boolean |
isConnected()
Is the data points connected with line |
void |
setConnected(boolean connected)
Sets if the data points are connected with line |
| 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 boolean connected
| Constructor Detail |
|---|
public LegendLineSymbol(Style style)
style - style| Method Detail |
|---|
public int getPreferredHeight(AbstractGraphics g)
getPreferredHeight in class LegendMarkerSymbolg - graphics context for which the preferred height is to be calculatedpublic int getPreferredWidth(AbstractGraphics g)
getPreferredWidth in class LegendMarkerSymbolg - graphics context for which the preferred width is to be calculated
public void draw(AbstractGraphics g,
Style legendStyle,
Rectangle2D bounds,
PaintMode paintMode)
LegendSymbol
draw in class LegendMarkerSymbolg - graphics contextlegendStyle - legend stylesheet for common attributes, such a box symbol borderbounds - symbol boundspaintMode - paint modepublic boolean isConnected()
public void setConnected(boolean connected)
connected - true if data points are connected
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||