public interface Legend extends Block
Besides the general approach of using Chart.getBlock( ).getChildren( ) we can also access it using the convenient method: Chart.getLegend( );
The following features are supported:
LayoutPackage.getLegend()
Modifier and Type | Method and Description |
---|---|
Legend |
copyInstance() |
ClientArea |
getClientArea()
Returns the value of the 'Client Area' containment reference.
|
Direction |
getDirection()
Returns the value of the 'Direction' attribute.
|
int |
getEllipsis()
Returns the value of the 'Ellipsis' attribute.
|
FormatSpecifier |
getFormatSpecifier()
Returns the value of the 'Format Specifier' containment reference.
|
int |
getHorizontalSpacing()
Returns the value of the 'Horizontal Spacing' attribute.
|
LegendItemType |
getItemType()
Returns the value of the 'Item Type' attribute.
|
double |
getMaxPercent()
Returns the value of the 'Max Percent' attribute.
|
Orientation |
getOrientation()
Returns the value of the 'Orientation' attribute.
|
Position |
getPosition()
Returns the value of the 'Position' attribute.
|
LineAttributes |
getSeparator()
Returns the value of the 'Separator' containment reference.
|
Text |
getText()
Returns the value of the 'Text' containment reference.
|
Label |
getTitle()
Returns the value of the 'Title' containment reference.
|
double |
getTitlePercent()
Returns the value of the 'Title Percent' attribute.
|
Position |
getTitlePosition()
Returns the value of the 'Title Position' attribute.
|
int |
getVerticalSpacing()
Returns the value of the 'Vertical Spacing' attribute.
|
double |
getWrappingSize()
Returns the value of the 'Wrapping Size' attribute.
|
boolean |
isSetDirection()
Returns whether the value of the '
Direction ' attribute is set. |
boolean |
isSetEllipsis()
Returns whether the value of the '
Ellipsis ' attribute is set. |
boolean |
isSetHorizontalSpacing()
Returns whether the value of the '
Horizontal Spacing ' attribute is set. |
boolean |
isSetItemType()
Returns whether the value of the '
Item Type ' attribute is set. |
boolean |
isSetMaxPercent()
Returns whether the value of the '
Max Percent ' attribute is set. |
boolean |
isSetOrientation()
Returns whether the value of the '
Orientation ' attribute is set. |
boolean |
isSetPosition()
Returns whether the value of the '
Position ' attribute is set. |
boolean |
isSetShowPercent()
Returns whether the value of the '
Show Percent ' attribute is set. |
boolean |
isSetShowTotal()
Returns whether the value of the '
Show Total ' attribute is set. |
boolean |
isSetShowValue()
Returns whether the value of the '
Show Value ' attribute is set. |
boolean |
isSetTitlePercent()
Returns whether the value of the '
Title Percent ' attribute is set. |
boolean |
isSetTitlePosition()
Returns whether the value of the '
Title Position ' attribute is set. |
boolean |
isSetVerticalSpacing()
Returns whether the value of the '
Vertical Spacing ' attribute is set. |
boolean |
isSetWrappingSize()
Returns whether the value of the '
Wrapping Size ' attribute is set. |
boolean |
isShowPercent()
Returns the value of the 'Show Percent' attribute.
|
boolean |
isShowTotal()
Returns the value of the 'Show Total' attribute.
|
boolean |
isShowValue()
Returns the value of the 'Show Value' attribute.
|
void |
setClientArea(ClientArea value)
Sets the value of the '
Client Area ' containment reference. |
void |
setDirection(Direction value)
Sets the value of the '
Direction ' attribute. |
void |
setEllipsis(int value)
Sets the value of the '
Ellipsis ' attribute. |
void |
setFormatSpecifier(FormatSpecifier value)
Sets the value of the '
Format Specifier ' containment reference. |
void |
setHorizontalSpacing(int value)
Sets the value of the '
Horizontal Spacing ' attribute. |
void |
setItemType(LegendItemType value)
Sets the value of the '
Item Type ' attribute. |
void |
setMaxPercent(double value)
Sets the value of the '
Max Percent ' attribute. |
void |
setOrientation(Orientation value)
Sets the value of the '
Orientation ' attribute. |
void |
setPosition(Position value)
Sets the value of the '
Position ' attribute. |
void |
setSeparator(LineAttributes value)
Sets the value of the '
Separator ' containment reference. |
void |
setShowPercent(boolean value)
Sets the value of the '
Show Percent ' attribute. |
void |
setShowTotal(boolean value)
Sets the value of the '
Show Total ' attribute. |
void |
setShowValue(boolean value)
Sets the value of the '
Show Value ' attribute. |
void |
setText(Text value)
Sets the value of the '
Text ' containment reference. |
void |
setTitle(Label value)
Sets the value of the '
Title ' containment reference. |
void |
setTitlePercent(double value)
Sets the value of the '
Title Percent ' attribute. |
void |
setTitlePosition(Position value)
Sets the value of the '
Title Position ' attribute. |
void |
setVerticalSpacing(int value)
Sets the value of the '
Vertical Spacing ' attribute. |
void |
setWrappingSize(double value)
Sets the value of the '
Wrapping Size ' attribute. |
void |
unsetDirection()
Unsets the value of the '
Direction ' attribute. |
void |
unsetEllipsis()
Unsets the value of the '
Ellipsis ' attribute. |
void |
unsetHorizontalSpacing()
Unsets the value of the '
Horizontal Spacing ' attribute. |
void |
unsetItemType()
Unsets the value of the '
Item Type ' attribute. |
void |
unsetMaxPercent()
Unsets the value of the '
Max Percent ' attribute. |
void |
unsetOrientation()
Unsets the value of the '
Orientation ' attribute. |
void |
unsetPosition()
Unsets the value of the '
Position ' attribute. |
void |
unsetShowPercent()
Unsets the value of the '
Show Percent ' attribute. |
void |
unsetShowTotal()
Unsets the value of the '
Show Total ' attribute. |
void |
unsetShowValue()
Unsets the value of the '
Show Value ' attribute. |
void |
unsetTitlePercent()
Unsets the value of the '
Title Percent ' attribute. |
void |
unsetTitlePosition()
Unsets the value of the '
Title Position ' attribute. |
void |
unsetVerticalSpacing()
Unsets the value of the '
Vertical Spacing ' attribute. |
void |
unsetWrappingSize()
Unsets the value of the '
Wrapping Size ' attribute. |
void |
updateLayout(Chart cm)
Update the legend's block relationship in the hierarchy w.r.t.
|
add, children, getAnchor, getBackground, getBounds, getChildren, getColumn, getColumnspan, getCursor, getHeightHint, getInsets, getMinSize, getOutline, getPreferredSize, getRow, getRowspan, getStretch, getTriggers, getWidthHint, isCustom, isLegend, isPlot, isSetAnchor, isSetColumn, isSetColumnspan, isSetHeightHint, isSetRow, isSetRowspan, isSetStretch, isSetVisible, isSetWidthHint, isText, isTitle, isVisible, remove, setAnchor, setBackground, setBounds, setColumn, setColumnspan, setCursor, setHeightHint, setInsets, setMinSize, setOutline, setRow, setRowspan, setStretch, setVisible, setWidthHint, unsetAnchor, unsetColumn, unsetColumnspan, unsetHeightHint, unsetRow, unsetRowspan, unsetStretch, unsetVisible, unsetWidthHint
int getHorizontalSpacing()
isSetHorizontalSpacing()
,
unsetHorizontalSpacing()
,
setHorizontalSpacing(int)
,
LayoutPackage.getLegend_HorizontalSpacing()
void setHorizontalSpacing(int value)
Horizontal Spacing
' attribute.
value
- the new value of the 'Horizontal Spacing' attribute.isSetHorizontalSpacing()
,
unsetHorizontalSpacing()
,
getHorizontalSpacing()
void unsetHorizontalSpacing()
Horizontal Spacing
' attribute.
boolean isSetHorizontalSpacing()
Horizontal Spacing
' attribute is set.
unsetHorizontalSpacing()
,
getHorizontalSpacing()
,
setHorizontalSpacing(int)
int getVerticalSpacing()
isSetVerticalSpacing()
,
unsetVerticalSpacing()
,
setVerticalSpacing(int)
,
LayoutPackage.getLegend_VerticalSpacing()
void setVerticalSpacing(int value)
Vertical Spacing
' attribute. value
- the new value of the 'Vertical Spacing' attribute.isSetVerticalSpacing()
,
unsetVerticalSpacing()
,
getVerticalSpacing()
void unsetVerticalSpacing()
Vertical Spacing
' attribute. boolean isSetVerticalSpacing()
Vertical Spacing
' attribute is set.
unsetVerticalSpacing()
,
getVerticalSpacing()
,
setVerticalSpacing(int)
ClientArea getClientArea()
setClientArea(ClientArea)
,
LayoutPackage.getLegend_ClientArea()
void setClientArea(ClientArea value)
Client Area
' containment reference.
value
- the new value of the 'Client Area' containment reference.getClientArea()
Text getText()
setText(Text)
,
LayoutPackage.getLegend_Text()
void setText(Text value)
Text
' containment reference.
value
- the new value of the 'Text' containment reference.getText()
Orientation getOrientation()
"Horizontal"
. The literals are from the enumeration
Orientation
. Gets the orientation to be
used for entries in the legend. This determines the way the entries are arranged in the legend.
The orientation of elements in the legend.
Orientation
,
isSetOrientation()
,
unsetOrientation()
,
setOrientation(Orientation)
,
LayoutPackage.getLegend_Orientation()
void setOrientation(Orientation value)
Orientation
' attribute.
value
- the new value of the 'Orientation' attribute.Orientation
,
isSetOrientation()
,
unsetOrientation()
,
getOrientation()
void unsetOrientation()
Orientation
' attribute.
boolean isSetOrientation()
Orientation
' attribute is set. unsetOrientation()
,
getOrientation()
,
setOrientation(Orientation)
Direction getDirection()
"Left_Right"
. The literals are from the enumeration
Direction
. Gets the direction to be used
for entries in the legend. This determines the flow of the entries in the legend.
The direction in which the entries are added to the legend.
Direction
,
isSetDirection()
,
unsetDirection()
,
setDirection(Direction)
,
LayoutPackage.getLegend_Direction()
void setDirection(Direction value)
Direction
' attribute.
value
- the new value of the 'Direction' attribute.Direction
,
isSetDirection()
,
unsetDirection()
,
getDirection()
void unsetDirection()
Direction
' attribute.
boolean isSetDirection()
Direction
' attribute is set. unsetDirection()
,
getDirection()
,
setDirection(Direction)
LineAttributes getSeparator()
setSeparator(LineAttributes)
,
LayoutPackage.getLegend_Separator()
void setSeparator(LineAttributes value)
Separator
' containment reference.
value
- the new value of the 'Separator' containment reference.getSeparator()
Position getPosition()
"Above"
.
The literals are from the enumeration Position
.
The position of the legend.
Position
,
isSetPosition()
,
unsetPosition()
,
setPosition(Position)
,
LayoutPackage.getLegend_Position()
void setPosition(Position value)
Position
' attribute.
value
- the new value of the 'Position' attribute.Position
,
isSetPosition()
,
unsetPosition()
,
getPosition()
void unsetPosition()
Position
' attribute.
isSetPosition()
,
getPosition()
,
setPosition(Position)
boolean isSetPosition()
Position
' attribute is set. unsetPosition()
,
getPosition()
,
setPosition(Position)
LegendItemType getItemType()
"Series"
.
The literals are from the enumeration LegendItemType
.
The form rendering of series should take (by Series or by Categories).
LegendItemType
,
isSetItemType()
,
unsetItemType()
,
setItemType(LegendItemType)
,
LayoutPackage.getLegend_ItemType()
void setItemType(LegendItemType value)
Item Type
' attribute.
value
- the new value of the 'Item Type' attribute.LegendItemType
,
isSetItemType()
,
unsetItemType()
,
getItemType()
void unsetItemType()
Item Type
' attribute.
boolean isSetItemType()
Item Type
' attribute is set. unsetItemType()
,
getItemType()
,
setItemType(LegendItemType)
Label getTitle()
setTitle(Label)
,
LayoutPackage.getLegend_Title()
void setTitle(Label value)
Title
' containment reference.
value
- the new value of the 'Title' containment reference.getTitle()
Position getTitlePosition()
Position
.
Attribute "TitlePosition" specifies the position of the legend title
inside the legend block. It can be Above, Below, Left and Right -
by default it's Above.
Position
,
isSetTitlePosition()
,
unsetTitlePosition()
,
setTitlePosition(Position)
,
LayoutPackage.getLegend_TitlePosition()
void setTitlePosition(Position value)
Title Position
' attribute.
value
- the new value of the 'Title Position' attribute.Position
,
isSetTitlePosition()
,
unsetTitlePosition()
,
getTitlePosition()
void unsetTitlePosition()
Title Position
' attribute.
boolean isSetTitlePosition()
Title Position
' attribute is set.
unsetTitlePosition()
,
getTitlePosition()
,
setTitlePosition(Position)
boolean isShowValue()
isSetShowValue()
,
unsetShowValue()
,
setShowValue(boolean)
,
LayoutPackage.getLegend_ShowValue()
void setShowValue(boolean value)
Show Value
' attribute.
value
- the new value of the 'Show Value' attribute.isSetShowValue()
,
unsetShowValue()
,
isShowValue()
void unsetShowValue()
Show Value
' attribute.
isSetShowValue()
,
isShowValue()
,
setShowValue(boolean)
boolean isSetShowValue()
Show Value
' attribute is set.
unsetShowValue()
,
isShowValue()
,
setShowValue(boolean)
boolean isShowPercent()
isSetShowPercent()
,
unsetShowPercent()
,
setShowPercent(boolean)
,
LayoutPackage.getLegend_ShowPercent()
void setShowPercent(boolean value)
Show Percent
' attribute.
value
- the new value of the 'Show Percent' attribute.isSetShowPercent()
,
unsetShowPercent()
,
isShowPercent()
void unsetShowPercent()
Show Percent
' attribute.
boolean isSetShowPercent()
Show Percent
' attribute is set.
unsetShowPercent()
,
isShowPercent()
,
setShowPercent(boolean)
boolean isShowTotal()
isSetShowTotal()
,
unsetShowTotal()
,
setShowTotal(boolean)
,
LayoutPackage.getLegend_ShowTotal()
void setShowTotal(boolean value)
Show Total
' attribute.
value
- the new value of the 'Show Total' attribute.isSetShowTotal()
,
unsetShowTotal()
,
isShowTotal()
void unsetShowTotal()
Show Total
' attribute.
isSetShowTotal()
,
isShowTotal()
,
setShowTotal(boolean)
boolean isSetShowTotal()
Show Total
' attribute is set.
unsetShowTotal()
,
isShowTotal()
,
setShowTotal(boolean)
double getWrappingSize()
isSetWrappingSize()
,
unsetWrappingSize()
,
setWrappingSize(double)
,
LayoutPackage.getLegend_WrappingSize()
void setWrappingSize(double value)
Wrapping Size
' attribute.
value
- the new value of the 'Wrapping Size' attribute.isSetWrappingSize()
,
unsetWrappingSize()
,
getWrappingSize()
void unsetWrappingSize()
Wrapping Size
' attribute.
boolean isSetWrappingSize()
Wrapping Size
' attribute is set.
unsetWrappingSize()
,
getWrappingSize()
,
setWrappingSize(double)
double getMaxPercent()
"0.33333333"
.
Attribute "MaxPercent" specifies the maximal percent of space which the
legend can take from the whole chart block. By default, it's 0.33333333,
which means the legend block will either be dropped or occupy less than
33.3% space of the whole chart block.
isSetMaxPercent()
,
unsetMaxPercent()
,
setMaxPercent(double)
,
LayoutPackage.getLegend_MaxPercent()
void setMaxPercent(double value)
Max Percent
' attribute.
value
- the new value of the 'Max Percent' attribute.isSetMaxPercent()
,
unsetMaxPercent()
,
getMaxPercent()
void unsetMaxPercent()
Max Percent
' attribute.
boolean isSetMaxPercent()
Max Percent
' attribute is set.
unsetMaxPercent()
,
getMaxPercent()
,
setMaxPercent(double)
double getTitlePercent()
"0.6"
.
Attribute "TitlePercent" specifies the maximal percent of space which the
legend title can take from the whole legend block. By default, it's 0.6,
which means the legend title will either be dropped or occupy less than
60% space of the whole legend block.
isSetTitlePercent()
,
unsetTitlePercent()
,
setTitlePercent(double)
,
LayoutPackage.getLegend_TitlePercent()
void setTitlePercent(double value)
Title Percent
' attribute.
value
- the new value of the 'Title Percent' attribute.isSetTitlePercent()
,
unsetTitlePercent()
,
getTitlePercent()
void unsetTitlePercent()
Title Percent
' attribute.
boolean isSetTitlePercent()
Title Percent
' attribute is set.
unsetTitlePercent()
,
getTitlePercent()
,
setTitlePercent(double)
int getEllipsis()
"1"
.
Int attribute "Ellipsis" specifies the behavior of shortening the legend item's
text with ellipsis if there is not enough space to display the whole text. Value
0 indicates that the feature is disabled, and the legend item will either be displayed
with whole text or be dropped. A positive value n represents the minimal count
of characters to be displayed before the ellipsis, which means the legend item
will either be dropped or be displayed with at least n characters.
isSetEllipsis()
,
unsetEllipsis()
,
setEllipsis(int)
,
LayoutPackage.getLegend_Ellipsis()
void setEllipsis(int value)
Ellipsis
' attribute.
value
- the new value of the 'Ellipsis' attribute.isSetEllipsis()
,
unsetEllipsis()
,
getEllipsis()
void unsetEllipsis()
Ellipsis
' attribute.
isSetEllipsis()
,
getEllipsis()
,
setEllipsis(int)
boolean isSetEllipsis()
Ellipsis
' attribute is set.
unsetEllipsis()
,
getEllipsis()
,
setEllipsis(int)
FormatSpecifier getFormatSpecifier()
If the meaning of the 'Format Specifier' containment reference isn't clear, there really should be more of a description here...
Element "FormatSpecifier" specifies how the legend item text will be formated.setFormatSpecifier(FormatSpecifier)
,
LayoutPackage.getLegend_FormatSpecifier()
void setFormatSpecifier(FormatSpecifier value)
Format Specifier
' containment reference.
value
- the new value of the 'Format Specifier' containment reference.getFormatSpecifier()
void updateLayout(Chart cm)
cm
- Legend copyInstance()
copyInstance
in interface Block
copyInstance
in interface IChartObject
Copyright © 2014 OpenText Corp. All rights reserved.