public class PieChart extends AbstractJ2DShape
RMTypes.Align, RMTypes.AlignX, RMTypes.AlignY| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ARCHIVE_NAME |
static java.lang.String |
DEFAULT_LABLE_FORMAT |
static int |
LABELS_NONE |
static int |
LABELS_OUTSET |
static int |
LABELS_SIMPLE |
static int |
SORT_KEYS_ASC |
static int |
SORT_KEYS_DESC |
static int |
SORT_NONE |
static int |
SORT_VALUES_ASC |
static int |
SORT_VALUES_DESC |
static int |
STYLE_3D |
static int |
STYLE_PIE |
static int |
STYLE_RING |
DEFAULT_COLORS, dirty, DPI300, DPI72, log, RasterDPIBINDING_PROP_NAME, STROKE_BORDER, STROKE_DOUBLE, STROKE_HIDDEN, STROKE_SHAPE| Constructor and Description |
|---|
PieChart() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
fromXML(RXArchiver anArchiver,
RXElement e)
XML unarchival.
|
java.awt.Color[] |
getColors() |
java.lang.String |
getDatasetKey()
Returns the dataset key associated with this shape.
|
java.awt.Font |
getLabelFont() |
java.lang.String |
getLabelFormat() |
java.lang.String |
getLabelKey() |
int |
getLabelStyle() |
java.awt.Font |
getLegendFont() |
java.awt.Color |
getSectionOutline() |
int |
getSort() |
int |
getStyle() |
java.lang.String |
getValueKey() |
boolean |
isLegend() |
protected void |
render(java.awt.Graphics2D g,
int width,
int height)
This is where implementations of AbstractJ2DShape actuall paint themselves to a graphics context.
|
protected RMShape |
rpgShape(ReportOwner owner,
RMShape aParent)
Generate report with report owner.
|
void |
setColors(java.awt.Color[] colors) |
void |
setDatasetKey(java.lang.String key) |
void |
setLabelFont(java.awt.Font labelFont) |
void |
setLabelFormat(java.lang.String labelFormat) |
void |
setLabelKey(java.lang.String labelKey) |
void |
setLabelStyle(int labelStyle) |
void |
setLegend(boolean legend) |
void |
setLegendFont(java.awt.Font legendFont) |
void |
setSectionOutline(java.awt.Color outline) |
void |
setSort(int sort)
Set to @NonKeyMappable because key mapping isn't working.
|
void |
setStyle(int style) |
void |
setValueKey(java.lang.String valueKey) |
RXElement |
toXML(RXArchiver anArchiver)
XML archival.
|
getDefaultColorCodes, getDefaultColors, getDisplayedFill, paintShape, setDirtyacceptsChildren, acceptsMouse, addBinding, addBinding, addDeepChangeListener, addMouseListener, animUpdate, bounds, childrenSuperSelectImmediately, clone, cloneDeep, computePrefHeight, computePrefWidth, contains, convertedPointFromShape, convertedPointToShape, convertedRectFromShape, convertedRectToShape, convertedVectorFromShape, convertedVectorToShape, convertFromShape, convertPathFromShape, convertPathToShape, convertPointFromShape, convertPointToShape, convertRectFromShape, convertRectToShape, convertToShape, convertVectorFromShape, convertVectorToShape, copyShape, createDivideShapeRemainder, deepChange, divideShapeFromEdge, divideShapeFromTop, get, get, getAlignment, getAlignmentX, getAlignmentY, getAncestor, getAncestorCount, getAncestorInCommon, getAnimator, getAnimator, getAutosizing, getAutosizingDefault, getBestHeight, getBestHeight, getBestWidth, getBestWidth, getBinding, getBinding, getBindingCount, getBindings, getBounds, getBoundsInside, getBoundsMarked, getBoundsMarkedDeep, getChild, getChildAnimator, getChildAnimator, getChildClipShape, getChildCount, getChildren, getClipShape, getColor, getDashArrayString, getDashPhase, getDatasetEntity, getDisplayedStroke, getDocument, getEffect, getEventAdapter, getFill, getFont, getFormat, getFrame, getFrameHeight, getFrameMaxX, getFrameMaxY, getFrameWidth, getFrameX, getFrameXY, getFrameY, getHeight, getHover, getLayoutInfo, getMaskPath, getMaxX, getMaxY, getMinHeight, getMinHeight, getMinWidth, getMinWidth, getName, getOpacity, getOpacityDeep, getOutline, getPageBreak, getPageBreakMax, getPageBreakPage, getPageBreakPageMax, getPageShape, getParent, getParent, getPath, getPathInBounds, getPrefHeight, getPrefHeight, getPrefWidth, getPrefWidth, getPropertyNameMapped, getPropertyNames, getPropertyNames, getRoll, getRootShape, getRSS, getScaleX, getScaleY, getShapesToAncestor, getShapesToDescendant, getShapesToShape, getSize, getSkewX, getSkewY, getStroke, getStrokeColor, getStrokeOnTop, getStrokeStyle, getStrokeWidth, getTextColor, getTimeline, getTimeline, getTransform, getTransformFromShape, getTransformInverse, getTransformToShape, getUndoer, getURL, getVisbileBounds, getVisibleBounds, getVisibleBounds, getVisibleBounds, getWidth, getX, getXY, getXYP, getY, height, indexOf, intersects, isAncestor, isAnimProperty, isDeletable, isDescendant, isEditing, isEnabled, isFontSet, isHittable, isLocked, isMinHeightSet, isMinWidthSet, isPrefHeightSet, isPrefWidthSet, isRoot, isRSS, isShowing, isUnderlined, isUseFill, isUseStroke, isViewing, isVisible, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, offsetXY, page, pageMax, paint, paintShapeAll, paintShapeChildren, paintShapeOver, propertyChange, put, removeBinding, removeBinding, removeDeepChangeListener, removeFromParent, removeMouseListener, repaint, repaint, resolvePageReferences, rpgAll, rpgBindings, setAlignment, setAlignmentX, setAlignmentY, setAutosizing, setBestHeight, setBestSize, setBounds, setBounds, setColor, setDashArrayString, setDashPhase, setEffect, setEnabled, setFill, setFont, setFormat, setFrame, setFrame, setFrameSize, setFrameX, setFrameXY, setFrameXY, setFrameY, setHeight, setHover, setLayoutInfo, setLocked, setMinHeight, setMinSize, setMinWidth, setName, setOpacity, setOutline, setParent, setPrefHeight, setPrefWidth, setRoll, setScaleX, setScaleXY, setScaleY, setShowing, setSize, setSize, setSkewX, setSkewXY, setSkewY, setStroke, setStrokeColor, setStrokeStyle, setStrokeWidth, setTextColor, setTime, setTimeline, setUnderlined, setURL, setUseFill, setUseStroke, setVisible, setWidth, setX, setXY, setXY, setXYP, setY, shapeHidden, shapeShown, superSelectable, toString, undoerDisable, undoerEnable, undoerSetUndoTitle, width, x, yaddPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChangeaddListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListenerpublic static final java.lang.String ARCHIVE_NAME
public static final int LABELS_NONE
public static final int LABELS_SIMPLE
public static final int LABELS_OUTSET
public static final int SORT_NONE
public static final int SORT_KEYS_ASC
public static final int SORT_KEYS_DESC
public static final int SORT_VALUES_ASC
public static final int SORT_VALUES_DESC
public static final int STYLE_PIE
public static final int STYLE_3D
public static final int STYLE_RING
public static final java.lang.String DEFAULT_LABLE_FORMAT
protected RMShape rpgShape(ReportOwner owner, RMShape aParent)
RMShapeprotected void render(java.awt.Graphics2D g,
int width,
int height)
AbstractJ2DShaperender in class AbstractJ2DShapepublic java.awt.Color[] getColors()
public void setColors(java.awt.Color[] colors)
public java.lang.String getDatasetKey()
RMShapegetDatasetKey in class RMShapepublic void setDatasetKey(java.lang.String key)
public java.lang.String getLabelKey()
public void setLabelKey(java.lang.String labelKey)
public java.lang.String getValueKey()
public void setValueKey(java.lang.String valueKey)
public int getSort()
public void setSort(int sort)
public int getStyle()
public void setStyle(int style)
public boolean isLegend()
public void setLegend(boolean legend)
public int getLabelStyle()
public void setLabelStyle(int labelStyle)
public java.lang.String getLabelFormat()
public void setLabelFormat(java.lang.String labelFormat)
public java.awt.Font getLabelFont()
public void setLabelFont(java.awt.Font labelFont)
public java.awt.Font getLegendFont()
public void setLegendFont(java.awt.Font legendFont)
public java.awt.Color getSectionOutline()
public void setSectionOutline(java.awt.Color outline)
public RXElement toXML(RXArchiver anArchiver)
toXML in interface ArchivabletoXML in class RMShapepublic java.lang.Object fromXML(RXArchiver anArchiver, RXElement e)
fromXML in interface ArchivablefromXML in class RMShape