public class Legend
Example:
//Set Legend's width and height
Legend legend = chart.getLegend();
//Legend is at right side of chart by default.
//If the legend is at left or right side of the chart, setting Legend.X property will not take effect.
//If the legend is at top or bottom side of the chart, setting Legend.Y property will not take effect.
legend.setY(1500);
legend.setWidth(50);
legend.setHeight(50);
//Set legend's position
legend.setPosition(LegendPositionType.LEFT);
Property Getters/Setters Summary | ||
---|---|---|
Area | getArea() | |
Gets the |
||
boolean | getAutoScaleFont() | |
void | setAutoScaleFont(booleanvalue) | |
True if the text in the object changes font size when the object size changes. The default value is True. | ||
int | getBackground() | |
void | setBackground(intvalue) | |
Gets and sets the display mode of the background The value of the property is BackgroundMode integer constant. | ||
int | getBackgroundMode() | |
void | setBackgroundMode(intvalue) | |
Gets and sets the display mode of the background The value of the property is BackgroundMode integer constant. | ||
Line | getBorder() | |
Gets the |
||
Chart | getChart() | |
int | getDefaultHeight() | |
Represents height of default position
|
||
int | getDefaultWidth() | |
Represents width of default position
|
||
int | getDefaultX() | |
Represents x of default position
|
||
int | getDefaultY() | |
Represents y of default position
|
||
Font | getFont() | |
Gets a |
||
int | getHeight() | |
void | setHeight(intvalue) | |
Gets or sets the height of frame in units of 1/4000 of the chart area. | ||
boolean | isAutomaticSize() | |
void | setAutomaticSize(booleanvalue) | |
Indicates whether the chart frame is automatic sized. | ||
boolean | isDefaultPosBeSet() | |
Indicates whether default position(DefaultX, DefaultY, DefaultWidth and DefaultHeight) are set.
|
||
boolean | isInnerMode() | |
void | setInnerMode(booleanvalue) | |
Indicates whether the size of the plot area size includes the tick marks, and the axis labels. False specifies that the size shall determine the size of the plot area, the tick marks, and the axis labels. | ||
boolean | isOverLay() | |
void | setOverLay(booleanvalue) | |
Gets or sets whether other chart elements shall be allowed to overlap this chart element. | ||
LegendEntryCollection | getLegendEntries() | |
Gets a collection of all the LegendEntry objects in the specified chart legend.
Setting the legend entries of the surface chart is not supported.
So it will return null if the chart type is surface chart type.
|
||
java.util.ArrayList | getLegendEntriesLabels() | |
Gets the labels of the legend entries after call Chart.Calculate() methond.
|
||
int | getPosition() | |
void | setPosition(intvalue) | |
Gets or sets the legend position type. The value of the property is LegendPositionType integer constant. | ||
boolean | getShadow() | |
void | setShadow(booleanvalue) | |
True if the frame has a shadow. | ||
ShapePropertyCollection | getShapeProperties() | |
Gets the |
||
Font | getTextFont() | |
Gets a |
||
int | getWidth() | |
void | setWidth(intvalue) | |
Gets or sets the width of frame in units of 1/4000 of the chart area. | ||
int | getX() | |
void | setX(intvalue) | |
Gets or sets the x coordinate of the upper left corner in units of 1/4000 of the chart area. | ||
int | getY() | |
void | setY(intvalue) | |
Gets or sets the y coordinate of the upper left corner in units of 1/4000 of the chart area. |
Method Summary | ||
---|---|---|
void | setPositionAuto() | |
Set position of the frame to automatic
|
public int getPosition() / public void setPosition(int value)
public LegendEntryCollection getLegendEntries()
public java.util.ArrayList getLegendEntriesLabels()
public boolean isOverLay() / public void setOverLay(boolean value)
public boolean isInnerMode() / public void setInnerMode(boolean value)
public Chart getChart()
public Font getTextFont()
public boolean getAutoScaleFont() / public void setAutoScaleFont(boolean value)
public int getBackgroundMode() / public void setBackgroundMode(int value)
public int getBackground() / public void setBackground(int value)
public boolean isAutomaticSize() / public void setAutomaticSize(boolean value)
public int getX() / public void setX(int value)
public int getY() / public void setY(int value)
public int getHeight() / public void setHeight(int value)
public int getWidth() / public void setWidth(int value)
public boolean getShadow() / public void setShadow(boolean value)
public ShapePropertyCollection getShapeProperties()
public boolean isDefaultPosBeSet()
public int getDefaultX()
public int getDefaultY()
public int getDefaultWidth()
public int getDefaultHeight()