|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel org.askalon.graph.chart.viewer.Legend org.askalon.graph.chart.viewer.StandardLegend
public class StandardLegend
StandardLegend also called section legend displaying one line per legend. One can choose if
checkbox and DoubleButton
are displayed.
Nested Class Summary | |
---|---|
static class |
StandardLegend.ToAdd
Like the static int values just a bit more modern. |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
StandardLegend(SectionChart chart)
|
|
StandardLegend(String title,
ActionListener listener,
SectionChart chart)
|
|
StandardLegend(String title,
SectionChart chart)
|
Method Summary | |
---|---|
void |
addEntry(String text,
Icon[] icon,
int section)
Like addEntry(String) but with additional Icon s |
void |
addEntry(String text,
Icon[] icon,
StandardLegend.ToAdd itemsToAdd,
int pos)
Like addEntry(String, Icon[], int) but the modern way. |
void |
addEntry(String text,
Icon[] icon,
StandardLegend.ToAdd itemsToAdd,
int sliderPos,
int pos)
|
void |
addEntry(String text,
int section)
Add a new entry with text, checkbox and DoubleButton |
void |
addLegendListener(LegendListener ll)
Adds an actionlistener to this legend. |
void |
cleanUp()
Cleans references of the chart. |
String |
getEntryText(int entry)
|
boolean |
isApplicable(Chart c)
|
void |
removeAllEntries()
remove all entries from this legend |
void |
removeEntry(int id)
|
void |
removeLegendListener(LegendListener ll)
remove a registered legend listener |
void |
setBackground(Color col)
|
void |
setChoices(Object... args)
|
void |
setDoubleButtonOrientation(boolean orientation)
|
void |
setDoubleButtonOrientation(Constants.Orientation orientation)
|
void |
setEntryCheckboxState(boolean state,
int entry)
|
void |
setEntryIcon(int entry,
Icon... icon)
|
void |
setEntrySliderPos(int pos,
int entry)
|
void |
setEntryText(String text,
int entry)
|
void |
setFont(Font font)
|
void |
setFontColor(Color c)
|
void |
setSelectedCheckBoxesEnabled(boolean enabled)
|
Methods inherited from class org.askalon.graph.chart.viewer.Legend |
---|
getTitle, setTitle |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StandardLegend(SectionChart chart)
public StandardLegend(String title, SectionChart chart)
public StandardLegend(String title, ActionListener listener, SectionChart chart)
Method Detail |
---|
public void addEntry(String text, int section)
DoubleButton
text
- section
- public void addEntry(String text, Icon[] icon, int section)
Icon
s
text
- icon
- section
- public void setChoices(Object... args)
public void addEntry(String text, Icon[] icon, StandardLegend.ToAdd itemsToAdd, int pos)
text
- icon
- itemsToAdd
- pos
- public void addEntry(String text, Icon[] icon, StandardLegend.ToAdd itemsToAdd, int sliderPos, int pos)
public void setEntryText(String text, int entry)
public void setEntrySliderPos(int pos, int entry)
public void setEntryIcon(int entry, Icon... icon)
public void setEntryCheckboxState(boolean state, int entry)
public void setDoubleButtonOrientation(boolean orientation)
public void setDoubleButtonOrientation(Constants.Orientation orientation)
public void setSelectedCheckBoxesEnabled(boolean enabled)
public String getEntryText(int entry)
public void removeEntry(int id)
public void removeAllEntries()
public void setFont(Font font)
setFont
in class JComponent
JComponent.setFont(Font)
,
Font
public void setBackground(Color col)
setBackground
in class JComponent
JComponent.setBackground(Color)
,
Color
public void setFontColor(Color c)
public void addLegendListener(LegendListener ll)
ll
- the listener to addpublic void removeLegendListener(LegendListener ll)
ll
- the listener to be removedpublic void cleanUp()
Cleanable
finalize()
Method of the chart.
public boolean isApplicable(Chart c)
isApplicable
in class Legend
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Part of: |
ASKALON Visualisation Diagrams |