public class DefaultChartLegendItem extends Object implements ChartLegendItem
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultChartLegendItem.RegisterPersistence |
| Modifier and Type | Field and Description |
|---|---|
LegendTitle |
legend |
| Constructor and Description |
|---|
DefaultChartLegendItem() |
DefaultChartLegendItem(LegendTitle legendTitle) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(Graphics2D g2,
Rectangle2D area) |
Paint |
getBackground() |
Font |
getItemFont() |
Object |
getLegendItem() |
int |
getXPosition() |
int |
getYPosition() |
boolean |
isVisible() |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setBackground(Paint paint) |
void |
setLegendItem(Object leg) |
void |
setPosition(int x,
int y) |
void |
setPosition(String vertical,
String horizontal) |
void |
setVisible(boolean isVisible) |
public DefaultChartLegendItem()
public DefaultChartLegendItem(LegendTitle legendTitle)
public Object getLegendItem()
getLegendItem in interface ChartLegendItempublic void setLegendItem(Object leg)
setLegendItem in interface ChartLegendItempublic Paint getBackground()
getBackground in interface ChartLegendItempublic void setBackground(Paint paint)
setBackground in interface ChartLegendItempublic void draw(Graphics2D g2, Rectangle2D area)
draw in interface ChartLegendItempublic Font getItemFont()
getItemFont in interface ChartLegendItempublic boolean isVisible()
isVisible in interface ChartLegendItempublic void setVisible(boolean isVisible)
setVisible in interface ChartLegendItempublic int getXPosition()
getXPosition in interface ChartLegendItempublic int getYPosition()
getYPosition in interface ChartLegendItempublic void setPosition(int x,
int y)
setPosition in interface ChartLegendItempublic void setPosition(String vertical, String horizontal)
setPosition in interface ChartLegendItempublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentPersistenceExceptionpublic void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentPersistenceException