public class SLLegend extends SLComponent
javax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description |
|---|---|
static int |
ALPHA_ORDER |
protected java.util.ArrayList |
children |
static int |
INSERTION_ORDER |
static int |
LEGEND_EAST |
static int |
LEGEND_INSIDE |
static int |
LEGEND_NORTH |
static int |
LEGEND_SOUTH |
static int |
LEGEND_WEST |
name, selectedaccessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
SLLegend(SLLocator locator,
SLAxes parent) |
SLLegend(SLLocator locator,
SLAxes parent,
int orderm)
Creates a legend which orders its entries accoring to the given
strategy.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(SLComponentEvent ev) |
void |
addChild(SLComponent c) |
void |
addLegend(java.lang.String token,
SLAnnotation T,
SLLine line) |
void |
addLegend(java.lang.String token,
SLLine line)
Add an association to the legend.
|
void |
applyPreferences(java.lang.String repos,
SLLegendPreferences p) |
void |
assignAnnotation(java.lang.String token,
SLAnnotation annot) |
java.awt.Color |
getBackgroundColor(java.awt.Color b) |
java.util.List |
getChildren() |
double |
getColumnSpace()
Get the space in pixels between columns.
|
java.awt.Color |
getEdgeColor(java.awt.Color b) |
double |
getEntryHeight()
Gets the height in pixels of a single row plus the inter-row space.
|
double |
getEntryWidth()
Gets the height in pixels of a single entry (symbol,text and spaces).
|
java.awt.Font |
getFont() |
java.awt.Color |
getFontColor(java.awt.Color b) |
java.lang.String |
getFontFamily() |
int |
getFontSize() |
int |
getFontStyle() |
java.awt.Graphics |
getGraphics() |
double |
getLabelWidth()
Get the space in pixels to hold a symbol's label.
|
int[] |
getLegendArrayDims() |
double |
getLegendAxesHSpace()
Get the horizontal space to place between a legend and the axes.
|
double |
getLegendAxesVSpace()
Get the vertical space to place between a legend and the axes.
|
java.awt.Font |
getLegendFont() |
double |
getLegendHeight()
Get height of legend in pixels.
|
int |
getLegendLocale() |
double |
getLegendWidth()
Get width of legend in pixels.
|
double |
getRowHeight()
Gets the height in pixels of a single row.
|
double |
getRowSpace()
Get the space in pixels between rows of the legend.
|
double |
getSymbolLabelSpace()
Get the space in pixels between the symbol and the text.
|
double |
getSymbolWidth()
Get the space in pixels to hold a symbol.
|
boolean |
getTruncate() |
int |
getTruncatePoint() |
DblMatrix |
getXBounds()
This default implementation of getXBounds returns a vector of zeros,
essentially giving the object a reported size of zero.
|
DblMatrix |
getXData()
Get the x-coordinate in data units of the upper left corner of the
legend box.
|
DblMatrix |
getYBounds()
This default implementation of getYBounds returns a vector of zeros,
essentially giving the object a reported size of zero.
|
DblMatrix |
getYData() |
DblMatrix |
getZBounds()
This default implementation of getZBounds returns a vector of zeros,
essentially giving the object a reported size of zero.
|
boolean |
hasChild(SLComponent b) |
void |
paint(java.awt.Graphics g) |
void |
paintSL() |
void |
paintSL(java.awt.Graphics g) |
void |
removeLegend(java.lang.String token)
Remove an association to the legend.
|
void |
setBackgroundColor(java.awt.Color b) |
void |
setEdgeColor(java.awt.Color b) |
void |
setFont(java.awt.Font b) |
void |
setFontColor(java.awt.Color b) |
void |
setFontFamily(java.lang.String f) |
void |
setFontSize(int x) |
void |
setFontStyle(int x) |
void |
setLegendDomainNameFilter(DomainNameFilter p) |
void |
setLegendFont(java.awt.Font f) |
void |
setLegendLocale(int x) |
void |
setLegendLocation(DblMatrix xdata,
DblMatrix ydata) |
void |
setNumberOfColumns(int x) |
void |
setTruncate(boolean f) |
void |
setTruncatePoint(int x) |
void |
updatePreferences(java.lang.String repos,
SLLegendPreferences p)
Deprecated.
|
getName, isSelected, seenIntersecting, setName, setSelected, superComponentPaintaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUIadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic static final int ALPHA_ORDER
public static final int INSERTION_ORDER
public static final int LEGEND_NORTH
public static final int LEGEND_SOUTH
public static final int LEGEND_EAST
public static final int LEGEND_WEST
public static final int LEGEND_INSIDE
protected java.util.ArrayList children
public boolean hasChild(SLComponent b)
hasChild in class SLComponentpublic java.util.List getChildren()
getChildren in class SLComponentpublic void applyPreferences(java.lang.String repos,
SLLegendPreferences p)
@Deprecated
public void updatePreferences(java.lang.String repos,
SLLegendPreferences p)
applyPreferences(String repos,SLLegendPreferences p)public void setLegendDomainNameFilter(DomainNameFilter p)
public void setLegendFont(java.awt.Font f)
public java.awt.Font getLegendFont()
public java.awt.Graphics getGraphics()
getGraphics in class SLComponentpublic void actionPerformed(SLComponentEvent ev)
actionPerformed in class SLComponentpublic void setTruncatePoint(int x)
public void setTruncate(boolean f)
public boolean getTruncate()
public int getTruncatePoint()
public void setFont(java.awt.Font b)
setFont in class javax.swing.JComponentpublic java.awt.Font getFont()
getFont in interface java.awt.MenuContainergetFont in class java.awt.Componentpublic java.lang.String getFontFamily()
public void setFontFamily(java.lang.String f)
public int getFontStyle()
public void setFontStyle(int x)
public int getFontSize()
public void setFontSize(int x)
public void setFontColor(java.awt.Color b)
public void setEdgeColor(java.awt.Color b)
public void setBackgroundColor(java.awt.Color b)
public java.awt.Color getFontColor(java.awt.Color b)
public java.awt.Color getEdgeColor(java.awt.Color b)
public java.awt.Color getBackgroundColor(java.awt.Color b)
public double getLegendAxesHSpace()
public double getLegendAxesVSpace()
public void setNumberOfColumns(int x)
public void setLegendLocale(int x)
public int getLegendLocale()
public double getRowHeight()
public double getEntryHeight()
public double getEntryWidth()
public double getColumnSpace()
public double getSymbolLabelSpace()
public double getSymbolWidth()
public double getLabelWidth()
public double getRowSpace()
public double getLegendWidth()
public int[] getLegendArrayDims()
public double getLegendHeight()
public DblMatrix getXBounds()
SLComponentgetXBounds in class SLComponentpublic DblMatrix getYBounds()
SLComponentgetYBounds in class SLComponentpublic DblMatrix getZBounds()
SLComponentgetZBounds in class SLComponentpublic void addLegend(java.lang.String token,
SLAnnotation T,
SLLine line)
public void addLegend(java.lang.String token,
SLLine line)
public void assignAnnotation(java.lang.String token,
SLAnnotation annot)
public void addChild(SLComponent c)
addChild in class SLComponentpublic void removeLegend(java.lang.String token)
public void paintSL()
public DblMatrix getXData()
public DblMatrix getYData()
public void paint(java.awt.Graphics g)
paint in class SLComponentpublic void paintSL(java.awt.Graphics g)
paintSL in class SLComponentCopyright © 2011, 2013. Daniel P. Dougherty