|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
jas.plot.PlotComponent
jas.plot.MovableObject
jas.plot.Legend
public class Legend
Represents a plot legend
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class jas.plot.MovableObject |
---|
bgcolors, bgnames |
Fields inherited from class jas.plot.PlotComponent |
---|
BEVEL_IN, BEVEL_OUT, ETCHED, LINE, NONE, OTHER, SHADOW |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, 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 | |
---|---|
Legend()
Create an empty legend |
Method Summary | |
---|---|
void |
add(LegendEntry e)
Adds a legend entry to a legend |
void |
clear()
Removes all entries from the legend |
String |
getCurrentTitle(int index)
Return the current title for the legend entry. |
int |
getNEntries()
Return the number of entries in the Legend |
boolean |
isTitleChanged(int index)
True if the legend entry has been changed (by the user) |
void |
legendTextChanged()
|
void |
modifyPopupMenu(JPopupMenu menu,
Component source)
Modify the given menu object. |
void |
remove(LegendEntry e)
Removes a legend entry from a legend |
void |
setCurrentTitle(int index,
String title)
Set a new title for the legend entry |
void |
setFont(Font font)
|
Methods inherited from class jas.plot.MovableObject |
---|
getBorderType, getInsideBorder, getPrefix, hasBeenMoved, hasBeenResized, hasDefaultLayout, mouseEventNotify, moveMovableObject, print, resizeMovableObject, restoreDefaultLayout, setBorder, setMovableObjectBounds, setMovableObjectBounds |
Methods inherited from class jas.plot.PlotComponent |
---|
isPaintingBackground, paintComponent, setBackground, setBorderType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Legend()
Method Detail |
---|
public void add(LegendEntry e)
public void remove(LegendEntry e)
public void clear()
public int getNEntries()
public String getCurrentTitle(int index)
public boolean isTitleChanged(int index)
public void setCurrentTitle(int index, String title)
public void modifyPopupMenu(JPopupMenu menu, Component source)
HasPopupItems
modifyPopupMenu
in interface HasPopupItems
modifyPopupMenu
in class MovableObject
public void setFont(Font font)
setFont
in class JComponent
public void legendTextChanged()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |