|
Chart Builder API (beta) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--oracle.ord.media.chart.Chart | +--oracle.ord.media.chart.legend.Legend
Legends display rows of labels and their associated color. Legends are used by axis charts to identify multiple series names by color. Legends are used by pie charts to display pie slice labels that cannot be placed inside the pie slice.
Legends are automatically instantiated and placed by the chart package. Additional controls are provided to allow the user to control the placement and style of legends:
setLegendAlignment(Legend.EAST);
Note that axis charts and pie charts support different choices of legend placements. See setLegendAlignment() for more information on which alignments are compatible with each type of chart.
Inner Class Summary | |
class |
Legend.LegendElement
|
Inner classes inherited from class oracle.ord.media.chart.Chart |
Chart.ChartLabel |
Field Summary | |
static int |
DERIVED
System-defined legend orientation. |
static int |
EAST
Orient the legend in the EAST. |
static int |
NORTH
Orient the legend in the NORTH. |
static int |
NORTHEAST
Orient the legend in the NORTHEAST. |
static int |
NORTHWEST
Orient the legend in the NORTHWEST. |
static int |
SOUTH
Orient the legend in the SOUTH. |
static int |
SOUTHEAST
Orient the legend in the SOUTHEAST. |
static int |
SOUTHWEST
Orient the legend in the SOUTHWEST. |
static int |
USERDEFINED
Orient the legend using user-defined coordinates. |
static int |
WEST
Orient the legend in the WEST. |
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()
|
Method Summary | |
int |
getLegendAlignment()
Return the legend's alignment constant. |
java.awt.Color |
getLegendBackground()
Get the background color of the legend. |
boolean |
getLegendDisable()
Return the boolean associated with drawing the legend. |
boolean |
getLegendDisplaySingleSeries()
Return the boolean associated with whether to display legends for even one series. |
java.awt.Color |
getLegendEdgeColor()
Get the edge color of the legend. |
boolean |
getLegendEdgeDisable()
Get the disable flag |
java.awt.Color |
getLegendForeground()
Get the foreground color of the legend. |
boolean |
getLegendInside()
Get the legend placement. |
void |
setLegendAlignment(int alignment)
Set the legend alignment. |
void |
setLegendBackground(java.awt.Color c)
Set the background color of the legend. |
void |
setLegendDisable()
Disable the generation of the legend. |
void |
setLegendDisplaySingleSeries()
Enable the generation of the legend for even one series. |
void |
setLegendEdgeColor(java.awt.Color c)
Set the edge color of the legend. |
void |
setLegendEdgeDisable()
Disable drawing the legend edge |
void |
setLegendFont(java.awt.Font f)
Set the font of the legend. |
void |
setLegendForeground(java.awt.Color c)
Set the foreground color of the legend. |
void |
setLegendInside()
Place the legend inside the the chart's plot window. |
void |
setLegendOffsetX(int offsetX)
Adjust the x location of the legend by the supplied offset. |
void |
setLegendOffsetY(int offsetY)
Adjust the y location of the legend by the supplied offset. |
Methods inherited from class oracle.ord.media.chart.Chart |
getBackground, getBorderBottom, getBorderLeft, getBorderRight, getBorderTop, getEdgeColor, getFootnote, getHeight, getMinimumSize, getPreferredSize, getRenderingHintsChart, getSize, getSubtitle, getTitle, getVersion, getWidth, isSetRenderingHintsChart, setBackground, setBorderBottom, setBorderLeft, setBorderRight, setBorderTop, setEdgeColor, setRenderingHintsChart, setTitlesForeground |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, getAccessibleContext, getAlignmentX, getAlignmentY, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, update, validate |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int DERIVED
public static final int NORTHWEST
public static final int NORTHEAST
public static final int NORTH
public static final int SOUTHWEST
public static final int SOUTHEAST
public static final int SOUTH
public static final int EAST
public static final int WEST
public static final int USERDEFINED
Constructor Detail |
public Legend()
Method Detail |
public void setLegendFont(java.awt.Font f)
f
- The font.public boolean getLegendDisable()
public void setLegendDisable()
public void setLegendInside()
public boolean getLegendInside()
public void setLegendDisplaySingleSeries()
public boolean getLegendDisplaySingleSeries()
public int getLegendAlignment()
public void setLegendAlignment(int alignment) throws ChartException
alignment
- The alignment to be set.java.lang.IllegalArgumentException
- if an improper value for
alignment is given.public void setLegendOffsetX(int offsetX)
public void setLegendOffsetY(int offsetY)
public java.awt.Color getLegendBackground()
public void setLegendBackground(java.awt.Color c)
public java.awt.Color getLegendForeground()
public void setLegendForeground(java.awt.Color c)
public java.awt.Color getLegendEdgeColor()
public void setLegendEdgeColor(java.awt.Color c)
public void setLegendEdgeDisable()
public boolean getLegendEdgeDisable()
|
Chart Builder API (beta) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |