@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LegendOptions extends Object implements Serializable, Cloneable, StructuredPojo
The options for the legend setup of a visual.
Constructor and Description |
---|
LegendOptions() |
Modifier and Type | Method and Description |
---|---|
LegendOptions |
clone() |
boolean |
equals(Object obj) |
String |
getHeight()
The height of the legend.
|
String |
getPosition()
The positions for the legend.
|
LabelOptions |
getTitle()
The custom title for the legend.
|
String |
getVisibility()
Determines whether or not the legend is visible.
|
String |
getWidth()
The width of the legend.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setHeight(String height)
The height of the legend.
|
void |
setPosition(String position)
The positions for the legend.
|
void |
setTitle(LabelOptions title)
The custom title for the legend.
|
void |
setVisibility(String visibility)
Determines whether or not the legend is visible.
|
void |
setWidth(String width)
The width of the legend.
|
String |
toString()
Returns a string representation of this object.
|
LegendOptions |
withHeight(String height)
The height of the legend.
|
LegendOptions |
withPosition(LegendPosition position)
The positions for the legend.
|
LegendOptions |
withPosition(String position)
The positions for the legend.
|
LegendOptions |
withTitle(LabelOptions title)
The custom title for the legend.
|
LegendOptions |
withVisibility(String visibility)
Determines whether or not the legend is visible.
|
LegendOptions |
withVisibility(Visibility visibility)
Determines whether or not the legend is visible.
|
LegendOptions |
withWidth(String width)
The width of the legend.
|
public void setVisibility(String visibility)
Determines whether or not the legend is visible.
visibility
- Determines whether or not the legend is visible.Visibility
public String getVisibility()
Determines whether or not the legend is visible.
Visibility
public LegendOptions withVisibility(String visibility)
Determines whether or not the legend is visible.
visibility
- Determines whether or not the legend is visible.Visibility
public LegendOptions withVisibility(Visibility visibility)
Determines whether or not the legend is visible.
visibility
- Determines whether or not the legend is visible.Visibility
public void setTitle(LabelOptions title)
The custom title for the legend.
title
- The custom title for the legend.public LabelOptions getTitle()
The custom title for the legend.
public LegendOptions withTitle(LabelOptions title)
The custom title for the legend.
title
- The custom title for the legend.public void setPosition(String position)
The positions for the legend. Choose one of the following options:
AUTO
RIGHT
BOTTOM
LEFT
position
- The positions for the legend. Choose one of the following options:
AUTO
RIGHT
BOTTOM
LEFT
LegendPosition
public String getPosition()
The positions for the legend. Choose one of the following options:
AUTO
RIGHT
BOTTOM
LEFT
AUTO
RIGHT
BOTTOM
LEFT
LegendPosition
public LegendOptions withPosition(String position)
The positions for the legend. Choose one of the following options:
AUTO
RIGHT
BOTTOM
LEFT
position
- The positions for the legend. Choose one of the following options:
AUTO
RIGHT
BOTTOM
LEFT
LegendPosition
public LegendOptions withPosition(LegendPosition position)
The positions for the legend. Choose one of the following options:
AUTO
RIGHT
BOTTOM
LEFT
position
- The positions for the legend. Choose one of the following options:
AUTO
RIGHT
BOTTOM
LEFT
LegendPosition
public void setWidth(String width)
The width of the legend. If this value is omitted, a default width is used when rendering.
width
- The width of the legend. If this value is omitted, a default width is used when rendering.public String getWidth()
The width of the legend. If this value is omitted, a default width is used when rendering.
public LegendOptions withWidth(String width)
The width of the legend. If this value is omitted, a default width is used when rendering.
width
- The width of the legend. If this value is omitted, a default width is used when rendering.public void setHeight(String height)
The height of the legend. If this value is omitted, a default height is used when rendering.
height
- The height of the legend. If this value is omitted, a default height is used when rendering.public String getHeight()
The height of the legend. If this value is omitted, a default height is used when rendering.
public LegendOptions withHeight(String height)
The height of the legend. If this value is omitted, a default height is used when rendering.
height
- The height of the legend. If this value is omitted, a default height is used when rendering.public String toString()
toString
in class Object
Object.toString()
public LegendOptions clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.