public class LegendRenderer
extends com.mindfusion.charting.components.Component
Constructor and Description |
---|
LegendRenderer()
Initializes a new instance of the
LegendRenderer class. |
Modifier and Type | Method and Description |
---|---|
com.mindfusion.charting.components.ComponentController |
createController(RenderContext context)
Component.createController override.
|
void |
draw(RenderContext context)
Component.draw override.
|
com.mindfusion.drawing.Pen |
effectiveBorderPen(RenderContext context)
Gets the Pen that should be used to draw the legend borders.
|
com.mindfusion.drawing.Brush |
effectiveBorderStroke(RenderContext context)
Gets the Brush that should be used to stroke the legend borders.
|
com.mindfusion.drawing.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.
|
com.mindfusion.drawing.Brush |
getBackground()
Gets the Brush that should be used to fill the background of this legend.
|
com.mindfusion.drawing.Brush |
getBorderStroke()
Gets the Brush that should be used to stroke the borders of this legend.
|
com.mindfusion.drawing.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.
|
com.mindfusion.drawing.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<com.mindfusion.drawing.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(com.mindfusion.drawing.Brush value)
Sets the Brush that should be used to fill the background of this legend.
|
void |
setBorderStroke(com.mindfusion.drawing.Brush value)
Sets the Brush that should be used to stroke the borders of this legend.
|
void |
setBorderStrokeDashStyle(com.mindfusion.drawing.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(com.mindfusion.drawing.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<com.mindfusion.drawing.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, visit
public LegendRenderer()
LegendRenderer
class.public com.mindfusion.charting.components.ComponentController createController(RenderContext context)
createController
in class com.mindfusion.charting.components.Component
context
- A RenderContext instance.public void draw(RenderContext context)
draw
in class com.mindfusion.charting.components.Component
context
- A RenderContext instance.public void measure(double maxWidth, double maxHeight, RenderContext context)
measure
in class com.mindfusion.charting.components.Component
maxWidth
- The maximum width provided by parent component.maxHeight
- The maximum height provided by parent component.context
- A RenderContext instance.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 com.mindfusion.drawing.Brush getTitleBrush()
public void setTitleBrush(com.mindfusion.drawing.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<com.mindfusion.drawing.FontStyle> getTitleFontStyle()
public void setTitleFontStyle(java.util.EnumSet<com.mindfusion.drawing.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 com.mindfusion.drawing.Brush effectiveFill(RenderContext context)
context
- A RenderContext instance.public com.mindfusion.drawing.Pen effectiveBorderPen(RenderContext context)
context
- A RenderContext instance.public com.mindfusion.drawing.Brush effectiveBorderStroke(RenderContext context)
context
- A RenderContext instance.public com.mindfusion.drawing.Brush getBackground()
public void setBackground(com.mindfusion.drawing.Brush value)
public com.mindfusion.drawing.Brush getBorderStroke()
public void setBorderStroke(com.mindfusion.drawing.Brush value)
public java.lang.Double getBorderStrokeThickness()
public void setBorderStrokeThickness(java.lang.Double value)
public com.mindfusion.drawing.DashStyle getBorderStrokeDashStyle()
public void setBorderStrokeDashStyle(com.mindfusion.drawing.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)