|
|||||||||
| 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.LegendSegmentSymbol
public class LegendSegmentSymbol extends LegendSymbol
Legend symbol with a line segment and markers on each side
| Modifier and Type | Field and Description |
|---|---|
protected Style |
style
stylesheet of the legend symbol |
| Fields inherited from class lt.monarch.chart.engine.LegendSymbol |
|---|
paintStyle |
| Constructor and Description |
|---|
LegendSegmentSymbol(java.awt.Color color,
Marker startMarker,
Marker endMarker)
Constructs a new symbol with explicit colors. |
LegendSegmentSymbol(java.awt.Color color,
java.awt.Stroke stroke,
Marker startMarker,
Marker endMarker)
Constructs a new symbol with explicit colors. |
LegendSegmentSymbol(Style style)
Constructs a new symbol from a stylesheet. |
| 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. |
| 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 final Style style
| Constructor Detail |
|---|
public LegendSegmentSymbol(Style style)
style - stylesheet
public LegendSegmentSymbol(java.awt.Color color,
java.awt.Stroke stroke,
Marker startMarker,
Marker endMarker)
color - colorstroke - line strokestartMarker - start markerendMarker - end marker
public LegendSegmentSymbol(java.awt.Color color,
Marker startMarker,
Marker endMarker)
color - colorstartMarker - start markerendMarker - end marker| Method Detail |
|---|
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 legendStyle,
Rectangle2D bounds,
PaintMode paintMode)
LegendSymbol
draw in class LegendSymbolg - graphics contextlegendStyle - 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 | ||||||||