public class LegendRenderer extends Component
| Constructor and Description |
|---|
LegendRenderer()
Initializes a new instance of the
LegendRenderer class. |
| Modifier and Type | Method and Description |
|---|---|
ComponentController |
createController(RenderContext context)
Component.createController override.
|
void |
draw(RenderContext context)
Component.draw override.
|
Pen |
effectiveBorderPen(RenderContext context)
Gets the Pen that should be used to draw the legend borders.
|
Brush |
effectiveBorderStroke(RenderContext context)
Gets the Brush that should be used to stroke the legend borders.
|
Brush |
effectiveFill(RenderContext context)
Gets the Brush that should be used to fill the legend background.
|
boolean |
getAllowMove()
Gets a value indicating whether users are allowed to move this legend.
|
Brush |
getBackground()
Gets the Brush that should be used to fill the background of this legend.
|
Brush |
getBorderStroke()
Gets the Brush that should be used to stroke the borders of this legend.
|
DashStyle |
getBorderStrokeDashStyle()
Gets the stroke dash style of legend borders.
|
java.lang.Double |
getBorderStrokeThickness()
Gets the stroke thickness of legend borders.
|
com.mindfusion.common.ObservableList<SeriesRenderer> |
getContent()
Gets a list of SeriesRenderer objects whose Series
should be displayed in this legend.
|
LabelKinds |
getElementLabelKind() |
int |
getMaxItemsPerColumn() |
double |
getPadding()
Gets the padding space between content and borders of this legend.
|
boolean |
getShowSeriesElements() |
boolean |
getShowTitle()
Gets a value indicating whether to display the legend title.
|
java.lang.String |
getTitle()
Gets the legend's title.
|
Brush |
getTitleBrush()
Gets the Brush that should be used to draw the legend's Title.
|
java.lang.String |
getTitleFontName()
Gets the name of font that should be used to draw the legend's Title.
|
java.lang.Double |
getTitleFontSize()
Gets the size of font that should be used to draw the legend's Title.
|
java.util.EnumSet<FontStyle> |
getTitleFontStyle()
Gets the style of font that should be used to draw the legend's Title.
|
void |
measure(double maxWidth,
double maxHeight,
RenderContext context)
Component.measure override.
|
void |
setAllowMove(boolean value)
Sets a value indicating whether users are allowed to move this legend.
|
void |
setBackground(Brush value)
Sets the Brush that should be used to fill the background of this legend.
|
void |
setBorderStroke(Brush value)
Sets the Brush that should be used to stroke the borders of this legend.
|
void |
setBorderStrokeDashStyle(DashStyle value)
Sets the stroke dash style of legend borders.
|
void |
setBorderStrokeThickness(java.lang.Double value)
Sets the stroke thickness of legend borders.
|
void |
setContent(com.mindfusion.common.ObservableList<SeriesRenderer> value)
Sets a list of SeriesRenderer objects whose Series
should be displayed in this legend.
|
void |
setElementLabelKind(LabelKinds value) |
void |
setMaxItemsPerColumn(int value) |
void |
setPadding(double value)
Sets the padding space between content and borders of this legend.
|
void |
setShowSeriesElements(boolean value) |
void |
setShowTitle(boolean value)
Sets a value indicating whether to display the legend title.
|
void |
setTitle(java.lang.String value)
Sets the legend's title.
|
void |
setTitleBrush(Brush value)
Sets the Brush that should be used to draw the legend's Title.
|
void |
setTitleFontName(java.lang.String value)
Sets the name of font that should be used to draw the legend's Title.
|
void |
setTitleFontSize(java.lang.Double value)
Sets the size of font that should be used to draw the legend's Title.
|
void |
setTitleFontStyle(java.util.EnumSet<FontStyle> value)
Sets the style of font that should be used to draw the legend's Title.
|
add, arrange, associateJComponent, dissociateJComponent, effectiveMeasuredHeight, effectiveMeasuredWidth, getActualHeight, getActualWidth, getDesiredHeight, getDesiredWidth, getGridColumn, getGridRow, getHeight, getHitTestVisibility, getHorizontalAlignment, getMargin, getParent, getRectInParent, getToolTip, getVerticalAlignment, getVisibility, getWidth, getXInParent, getYInParent, hitTest, invalidate, invalidate, invalidate, invalidateLayout, invalidateLayout, localToRoot, rootToLocal, setActualHeight, setActualWidth, setDesiredHeight, setDesiredWidth, setGridColumn, setGridRow, setHeight, setHitTestVisibility, setHorizontalAlignment, setMargin, setParent, setToolTip, setVerticalAlignment, setVisibility, setWidth, setXInParent, setYInParent, visitpublic LegendRenderer()
LegendRenderer class.public ComponentController createController(RenderContext context)
createController in class Componentcontext - A RenderContext instance.public void draw(RenderContext context)
public void measure(double maxWidth,
double maxHeight,
RenderContext context)
public com.mindfusion.common.ObservableList<SeriesRenderer> getContent()
public void setContent(com.mindfusion.common.ObservableList<SeriesRenderer> value)
public java.lang.String getTitle()
public void setTitle(java.lang.String value)
public Brush getTitleBrush()
public void setTitleBrush(Brush value)
public java.lang.String getTitleFontName()
public void setTitleFontName(java.lang.String value)
public java.lang.Double getTitleFontSize()
public void setTitleFontSize(java.lang.Double value)
public java.util.EnumSet<FontStyle> getTitleFontStyle()
public void setTitleFontStyle(java.util.EnumSet<FontStyle> value)
public boolean getShowTitle()
public void setShowTitle(boolean value)
public double getPadding()
public void setPadding(double value)
public boolean getAllowMove()
public void setAllowMove(boolean value)
public Brush effectiveFill(RenderContext context)
context - A RenderContext instance.public Pen effectiveBorderPen(RenderContext context)
context - A RenderContext instance.public Brush effectiveBorderStroke(RenderContext context)
context - A RenderContext instance.public Brush getBackground()
public void setBackground(Brush value)
public Brush getBorderStroke()
public void setBorderStroke(Brush value)
public java.lang.Double getBorderStrokeThickness()
public void setBorderStrokeThickness(java.lang.Double value)
public DashStyle getBorderStrokeDashStyle()
public void setBorderStrokeDashStyle(DashStyle value)
public int getMaxItemsPerColumn()
public void setMaxItemsPerColumn(int value)
public boolean getShowSeriesElements()
public void setShowSeriesElements(boolean value)
public LabelKinds getElementLabelKind()
public void setElementLabelKind(LabelKinds value)