public abstract class AbstractXYScaleChart extends AbstractChart
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
protected java.util.List |
markers |
antialias, backgroundBounds, backgroundFillColor, backgroundGradient, backgroundGradientColor, backgroundGradientFactory, backgroundOutlineColor, backgroundStroke, backgroundVisible, box, chartPane, fixedValueCount, format, gradient, gradientColor, highlightBackground, highlightForeground, iconHeight, iconWidth, legendFont, legendLayout, legendOrientation, legendPane, lowerLimit, max, min, proportions, proportionsOfRange, proportionsOfSum, publishedElements, range, selectedColor, selectedOffset, selectedStroke, shadowOffset, shapeStructs, sortComparator, stroke, sum, textGap, titleLabel, unit, upperLimit, valueTextCenter, valueTextColor, valueTextFont, valueTextPosition, valueTextVisible, visibleFilters, xGap, yGap
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
AbstractXYScaleChart() |
AbstractXYScaleChart(java.util.List elements) |
AbstractXYScaleChart(java.util.List elements,
java.lang.String title) |
AbstractXYScaleChart(java.util.List elements,
java.lang.String title,
java.awt.Color backgroundColor) |
AbstractXYScaleChart(java.util.List elements,
java.lang.String title,
java.awt.Color backgroundColor,
java.awt.Color foregroundColor) |
AbstractXYScaleChart(TDataBox box) |
AbstractXYScaleChart(TDataBox box,
java.lang.String title,
java.awt.Color backgroundColor) |
AbstractXYScaleChart(TDataBox box,
java.lang.String title,
java.awt.Color backgroundColor,
java.awt.Color foregroundColor) |
Modifier and Type | Method and Description |
---|---|
void |
addMarker(double value,
java.awt.Color color)
Adds a marker to the list of the markers.
|
void |
addMarker(Marker marker)
Adds a new specified
Marker object to the list of the markers. |
void |
addXScaleText(java.lang.String text)
Adds a new specified scale text to the scale text list.
|
protected void |
calculate()
An abstract method that will be called when this chart is publishing data,
The subclass overrides this method to calculate some values.
|
protected void |
calculateXScaleTextHeight()
Calculate the height of the scale text in x axis;
|
protected void |
calculateYAxisRange()
Calculate the range of the y axis.
|
protected void |
calculateYScaleValueGap()
Calculate the value gap of the y scale.
|
java.awt.geom.Rectangle2D.Double |
getDrawBound()
Gets the bound of the draw area.
|
protected java.lang.String |
getFormatedXScaleText(double value) |
protected java.lang.String |
getFormatedYScaleText(double value) |
java.util.List |
getMarkers()
Gets the list of the markers.
|
protected int |
getXAxisExtraGap(java.awt.Graphics2D g2d) |
java.awt.Color |
getXAxisFillColor()
Gets the fill color of the x axis.
|
java.awt.Color |
getXAxisOutlineColor()
Gets the outline color of the x axis.
|
double |
getXAxisStartPosition()
Gets the start value of the x axis.
|
java.lang.String |
getXAxisStroke()
Gets the stroke of the x axis.
|
java.lang.String |
getXAxisText()
Gets the text of the x axis.
|
java.awt.Color |
getXAxisTextColor()
Gets the text color of the x axis.
|
java.awt.Font |
getXAxisTextFont()
Gets the text font of the x axis.
|
java.lang.String |
getXAxisUnit()
Gets the unit of the x axis.
|
java.awt.Color |
getXAxisUnitColor()
Gets the color of the x axis unit.
|
java.awt.Font |
getXAxisUnitFont()
Gets the font of the x axis unit.
|
double |
getXScaleActualValueGap()
Gets the actual value gap of the x scale.
|
java.util.List |
getXScaleHideValueIndex()
Gets the hide scale value index in x axis.
|
java.awt.Color |
getXScaleLineColor()
Gets the color of the scale line in x axis.
|
java.lang.String |
getXScaleLineStroke()
Gets the stroke of the scale line in x axis.
|
double |
getXScaleMaxValue()
Gets the maximal scale value of the x axis.
|
double |
getXScaleMinValue()
Gets the minimal scale value of the x axis.
|
double |
getXScalePixelGap()
Gets the scale pixel gap of the x axis.
|
java.awt.Color |
getXScaleTextColor()
Gets the scale text color of the x axis.
|
java.awt.Font |
getXScaleTextFont()
Gets the scale text font of the x axis.
|
java.text.NumberFormat |
getXScaleTextFormat()
Gets the scale text format of the x axis.
|
protected java.lang.String |
getXScaleTextFromScaleList(int index) |
java.util.List |
getXScaleTextList()
Gets the list of the scale text which is painted along the x-axis.
|
int |
getXScaleTextOrientation()
Gets the text orientation of the scale in x axis.
|
double |
getXScaleValueGap()
Gets the scale value gap of the x axis.
|
java.awt.Color |
getYAxisFillColor()
Gets the fill color of the y axis.
|
java.awt.Color |
getYAxisOutlineColor()
Gets the outline color of the y axis.
|
double |
getYAxisStartPosition()
Gets the start value of the y axis.
|
java.lang.String |
getYAxisStroke()
Gets the stroke of the y axis.
|
java.lang.String |
getYAxisText()
Gets the text of the y axis.
|
java.awt.Color |
getYAxisTextColor()
Gets the text color of the y axis.
|
java.awt.Font |
getYAxisTextFont()
Gets the text font of the y axis.
|
java.lang.String |
getYAxisUnit()
Gets the unit of the y axis.
|
java.awt.Color |
getYAxisUnitColor()
Gets the color of the y axis unit.
|
java.awt.Font |
getYAxisUnitFont()
Gets the font of the y axis unit.
|
double |
getYScaleActualValueGap()
Gets the actual value gap of the y scale.
|
java.util.List |
getYScaleHideValueIndex()
Gets the hide scale value index in y axis.
|
java.awt.Color |
getYScaleLineColor()
Gets the color of the scale line in y axis.
|
java.lang.String |
getYScaleLineStroke()
Gets the stroke of the scale line in y axis.
|
double |
getYScaleMaxValue()
Gets the maximal value for the y scale.
|
double |
getYScaleMinValue()
Gets the minimal value of the y scale.
|
int |
getYScalePixelGap()
Gets the scale pixel gap of the y axis.
|
java.awt.Color |
getYScaleTextColor()
Gets the scale text color of the y axis.
|
java.awt.Font |
getYScaleTextFont()
Gets the scale text font of the y axis.
|
java.text.NumberFormat |
getYScaleTextFormat()
Gets the scale text format of the y axis.
|
double |
getYScaleValueGap()
Gets the scale value gap of the y axis.
|
boolean |
isXAxisUnitVisible()
Gets whether the unit of the x axis is visible.
|
boolean |
isXAxisVisible()
Determines whether the x axis is visible.
|
boolean |
isXScaleLineVisible()
Determines whether the scale line in x axis is visible.
|
boolean |
isXScaleTextOnTop()
Gets whether the x scale text is on the top of the x axis.
|
boolean |
isXScaleTextVisible()
Determines whether the scale text of the x axis is visible.
|
boolean |
isYAxisUnitVisible()
Gets whether the unit of the y axis is visible.
|
boolean |
isYAxisVisible()
Determines whether the y axis is visible.
|
boolean |
isYScaleLineVisible()
Determines whether the scale line in y axis is visible.
|
boolean |
isYScaleTextInside()
Determines whether the scale text of the y axis is in inside.
|
boolean |
isYScaleTextVisible()
Determines whether the scale text of the y axis is visible.
|
boolean |
isYScaleValueGapAutoCalculate()
Determines whether the value gap of the y axis is calculated automatically.
|
void |
paintChart(java.awt.Graphics2D g,
int width,
int height)
The abstract method of paintChart(Graphics2D, int, int) is left for the
Implication class of
AbstractChart to override for painting
specified chart graphics. |
protected abstract void |
paintContent(java.awt.Graphics2D g2d,
int width,
int height) |
void |
removeMarker(Marker marker)
Removes a specified
Marker object from the markers |
protected void |
setChartSVGAttribute(AbstractSVGChart abschart) |
void |
setMarkers(java.util.List markers)
Sets a new list for the markers.
|
void |
setXAxisFillColor(java.awt.Color axisFillColor)
Sets the fill color of the x axis.
|
void |
setXAxisOutlineColor(java.awt.Color axisOutlineColor)
Sets the outline color of the x axis.
|
void |
setXAxisStartPosition(double axisStartPosition)
Sets the start value for the x axis.
|
void |
setXAxisStroke(java.lang.String axisStroke)
Sets the stroke for the x axis.
|
void |
setXAxisText(java.lang.String axisText)
Sets the text for the x axis.
|
void |
setXAxisTextColor(java.awt.Color axisTextColor)
Sets the text color for the x axis.
|
void |
setXAxisTextFont(java.awt.Font axisTextFont)
Sets the text font for the x axis.
|
void |
setXAxisUnit(java.lang.String axisUnit)
Sets the unit for the x axis.
|
void |
setXAxisUnitColor(java.awt.Color axisUnitColor)
Sets the color for the unit of the x axis.
|
void |
setXAxisUnitFont(java.awt.Font axisUnitFont)
Sets new font for the x axis unit.
|
void |
setXAxisUnitVisible(boolean axisUnitVisible)
Sets whether the unit of the x axis is visible.
|
void |
setXAxisVisible(boolean axisVisible)
Sets whether the x axis should be visible.
|
void |
setXScaleHideValueIndex(java.util.List scaleHideValueIndex)
Sets the hide scale value index in x axis.
|
void |
setXScaleLineColor(java.awt.Color scaleLineColor)
Sets the color for the scale line in x axis.
|
void |
setXScaleLineStroke(java.lang.String scaleLineStroke)
Sets the stroke for the scale line in x axis.
|
void |
setXScaleLineVisible(boolean scaleLineVisible)
Sets whether the scale line in x axis should be visible.
|
void |
setXScaleMaxValue(double scaleMaxValue)
Sets the maximal scale value for the x axis.
|
void |
setXScaleMinValue(double scaleMinValue)
Sets the minimal scale value for the x axis.
|
void |
setXScalePixelGap(double scalePixelGap)
Sets the scale pixel gap for the x axis.
|
void |
setXScaleTextColor(java.awt.Color scaleTextColor)
Sets the scale text color for the x axis.
|
void |
setXScaleTextFont(java.awt.Font scaleTextFont)
Sets the scale text font of the a axis.
|
void |
setXScaleTextFormat(java.text.NumberFormat scaleTextFormat)
Sets the scale text format for the x axis.
|
void |
setXScaleTextList(java.util.List xScaleTextList)
Sets a new list for the scale text which is painted along the x-axis.
|
void |
setXScaleTextOnTop(boolean scaleTextOnTop)
Sets whether the x scale text is on the top of the x axis.
|
void |
setXScaleTextOrientation(int scaleTextOrientation)
Sets the text orientation for the scale in x axis.
|
void |
setXScaleTextVisible(boolean scaleTextVisible)
Sets whether the scale text of the x axis should be visible.
|
void |
setXScaleValueGap(double scaleValueGap)
Sets the scale value gap for the x axis.
|
void |
setYAxisFillColor(java.awt.Color axisFillColor)
Sets the fill color for the y axis.
|
void |
setYAxisOutlineColor(java.awt.Color axisOutlineColor)
Sets the outline color for the y axis.
|
void |
setYAxisStartPosition(double axisStartValue)
Sets the start value for the y axis.
|
void |
setYAxisStroke(java.lang.String axisStroke)
Sets the stroke for the y axis.
|
void |
setYAxisText(java.lang.String axisText)
Sets the text for the y axis.
|
void |
setYAxisTextColor(java.awt.Color axisTextColor)
Sets the text color for the y axis.
|
void |
setYAxisTextFont(java.awt.Font axisTextFont)
Sets the text font for the y axis.
|
void |
setYAxisUnit(java.lang.String axisUnit)
Sets the unit of the y axis.
|
void |
setYAxisUnitColor(java.awt.Color axisUnitColor)
Sets the color for the unit of the y axis.
|
void |
setYAxisUnitFont(java.awt.Font axisUnitFont)
Sets the font for the y axis unit.
|
void |
setYAxisUnitVisible(boolean axisUnitVisible)
Sets whether the unit of the y axis is visible.
|
void |
setYAxisVisible(boolean axisVisible)
Sets whether the y axis should be visible.
|
void |
setYScaleHideValueIndex(java.util.List scaleHideValueIndex)
Sets the hide scale value index in y axis.
|
void |
setYScaleLineColor(java.awt.Color scaleLineColor)
Sets the color for the scale line in y axis.
|
void |
setYScaleLineStroke(java.lang.String scaleLineStroke)
Sets new stroke for the scale line in y axis.
|
void |
setYScaleLineVisible(boolean scaleLineVisible)
Sets whether the scale line in y axis should be visible.
|
void |
setYScaleMaxValue(double scaleMaxValue)
Sets the maximal value for the y scale.
|
void |
setYScaleMinValue(double scaleMinValue)
Sets the minimal value for the y scale.
|
void |
setYScalePixelGap(int scalePixelGap)
Sets the new scale pixel gap for the y axis.
|
void |
setYScaleTextColor(java.awt.Color scaleTextColor)
Sets the text color for the scale of the y axis.
|
void |
setYScaleTextFont(java.awt.Font scaleTextFont)
Sets the scale text font for the y axis.
|
void |
setYScaleTextFormat(java.text.NumberFormat scaleTextFormat)
Sets the scale text format for the y axis.
|
void |
setYScaleTextInside(boolean scaleTextInside)
Sets whether the scale text of the y axis should be in in inside.
|
void |
setYScaleTextVisible(boolean scaleTextVisible)
Sets whether the scale text of the y axis should be visible.
|
void |
setYScaleValueGap(double scaleValueGap)
Sets the new scale value gap for the y axis.
|
void |
setYScaleValueGapAutoCalculate(boolean scaleValueGapAutoCaculate)
Sets whether the value gap of the y axis should be calculated automatically.
|
addElementClickedActionListener, addElementDoubleClickedActionListener, addItem, addSelectableFilter, addVisibleFilter, cleanDirtyState, clearItems, clearSelectableFilters, exportImage, exportImage, exportSVG, exportSVG, exportToImageIcon, fireElementClicked, fireElementDoubleClicked, getBackgroundBounds, getBackgroundFillColor, getBackgroundGradientColor, getBackgroundGradientFactory, getBackgroundOutlineColor, getBackgroundStroke, getChartPane, getColor, getDataBox, getElementAt, getElementClickedActionListeners, getElementDoubleClickedActionListeners, getFormat, getFormat, getFormatedText, getFormatedText, getGradientColor, getGradientColor, getHighlightBackground, getHighlightForeground, getIconHeight, getIconWidth, getItemByIndex, getItemCount, getItems, getLegendElements, getLegendFont, getLegendLabel, getLegendLayout, getLegendOrientation, getLegendPane, getLowerLimit, getMax, getMaxZoom, getMin, getMinZoom, getPopupMenuGenerator, getPublishedElements, getSelectableFilters, getSelectedColor, getSelectedColor, getSelectedOffset, getSelectedStroke, getSelectedStroke, getShadowOffset, getShapeStructAt, getSortComparator, getStroke, getStroke, getTextGap, getTitle, getTitleLabel, getToolTipText, getUnit, getUpperLimit, getValue, getValues, getValueTextColor, getValueTextFont, getValueTextPosition, getVisibleFilters, getXGap, getXTranslate, getXZoom, getYGap, getYTranslate, getYZoom, getZoomIncrement, isAntialias, isBackgroundGradient, isBackgroundVisible, isClearSelectionOnMarginClicked, isEnableDoubleClickToReset, isEnableToolTipText, isEnableXTranslate, isEnableXZoom, isEnableYTranslate, isEnableYZoom, isGradient, isIteratorByHiberarchy, isLazyPublishMode, isLocked, isSelectable, isSelectableOnRightClick, isValueTextCenter, isValueTextVisible, isVisible, lock, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, paint, paintBackground, paintComponent, publishData, publishData, removeElementClickedActionListener, removeElementDoubleClickedActionListener, removeItem, removeSelectableFilter, removeVisibleFilter, reset, setAntialias, setBackgroundFillColor, setBackgroundGradient, setBackgroundGradientColor, setBackgroundGradientFactory, setBackgroundOutlineColor, setBackgroundStroke, setBackgroundVisible, setClearSelectionOnMarginClicked, setDataBox, setEnableDoubleClickToReset, setEnableToolTipText, setEnableXTranslate, setEnableXZoom, setEnableYTranslate, setEnableYZoom, setForeground, setFormat, setGradient, setGradientColor, setHighlightBackground, setHighlightForeground, setIconHeight, setIconWidth, setItems, setIteratorByHiberarchy, setLazyPublishMode, setLegendFont, setLegendLayout, setLegendOrientation, setLowerLimit, setMaxZoom, setMinZoom, setPopupMenuGenerator, setSelectableOnRightClick, setSelectedColor, setSelectedOffset, setSelectedStroke, setShadowOffset, setSortComparator, setStroke, setTextGap, setTitle, setTranslate, setUnit, setUpperLimit, setValueTextCenter, setValueTextColor, setValueTextFont, setValueTextPosition, setValueTextVisible, setXGap, setXTranslate, setXZoom, setYGap, setYTranslate, setYZoom, setZoomIncrement, unlock, updateTViewUI, zoomIn, zoomOut
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, 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, setFont, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, 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, validateTree
action, 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, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, 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, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public AbstractXYScaleChart()
public AbstractXYScaleChart(TDataBox box)
public AbstractXYScaleChart(TDataBox box, java.lang.String title, java.awt.Color backgroundColor)
public AbstractXYScaleChart(TDataBox box, java.lang.String title, java.awt.Color backgroundColor, java.awt.Color foregroundColor)
public AbstractXYScaleChart(java.util.List elements)
public AbstractXYScaleChart(java.util.List elements, java.lang.String title)
public AbstractXYScaleChart(java.util.List elements, java.lang.String title, java.awt.Color backgroundColor)
public AbstractXYScaleChart(java.util.List elements, java.lang.String title, java.awt.Color backgroundColor, java.awt.Color foregroundColor)
protected void calculate()
AbstractChart
calculate
in class AbstractChart
protected void calculateYAxisRange()
protected void calculateYScaleValueGap()
protected void calculateXScaleTextHeight()
public void paintChart(java.awt.Graphics2D g, int width, int height)
AbstractChart
AbstractChart
to override for painting
specified chart graphics.paintChart
in class AbstractChart
g
- the Graphics
context in which to paintwidth
- the width of the chart panelheight
- the height of the chart panelprotected abstract void paintContent(java.awt.Graphics2D g2d, int width, int height)
protected java.lang.String getFormatedXScaleText(double value)
protected java.lang.String getFormatedYScaleText(double value)
protected java.lang.String getXScaleTextFromScaleList(int index)
protected int getXAxisExtraGap(java.awt.Graphics2D g2d)
public double getXScaleActualValueGap()
public double getYScaleActualValueGap()
public boolean isXAxisVisible()
setXAxisVisible(boolean)
public void setXAxisVisible(boolean axisVisible)
axisVisible
- if true the a axis should be visible, false otherwise.isXAxisVisible()
public java.awt.Color getXAxisFillColor()
setXAxisFillColor(Color)
public void setXAxisFillColor(java.awt.Color axisFillColor)
axisFillColor
- the fill color of the x axis.getXAxisFillColor()
public java.awt.Color getXAxisOutlineColor()
setXAxisOutlineColor(Color)
public void setXAxisOutlineColor(java.awt.Color axisOutlineColor)
axisOutlineColor
- the outline color of the x axis.getXAxisOutlineColor()
public java.awt.Font getXAxisTextFont()
setXAxisTextFont(Font)
public void setXAxisTextFont(java.awt.Font axisTextFont)
axisTextFont
- the text font for the x axis.getXAxisTextFont()
public java.awt.Color getXAxisTextColor()
setXAxisTextColor(Color)
public void setXAxisTextColor(java.awt.Color axisTextColor)
axisTextColor
- the text color for the x axis.getXAxisTextColor()
public java.lang.String getXAxisText()
setXAxisText(String)
public void setXAxisText(java.lang.String axisText)
axisText
- the text for the x axis.getXAxisText()
public java.lang.String getXAxisStroke()
setXAxisStroke(String)
public void setXAxisStroke(java.lang.String axisStroke)
axisStroke
- the stroke for the x axis.getXAxisStroke()
public java.lang.String getXAxisUnit()
setXAxisUnit(String)
public void setXAxisUnit(java.lang.String axisUnit)
axisUnit
- the unit for the x axis.getXAxisUnit()
public java.awt.Font getYAxisTextFont()
setYAxisTextFont(Font)
public void setYAxisTextFont(java.awt.Font axisTextFont)
axisTextFont
- the text font for the y axis.getYAxisTextFont()
public boolean isYAxisVisible()
setYAxisVisible(boolean)
public void setYAxisVisible(boolean axisVisible)
axisVisible
- if true the y axis should be visible, false otherwise.isYAxisVisible()
public java.awt.Color getYAxisTextColor()
setYAxisTextColor(Color)
public void setYAxisTextColor(java.awt.Color axisTextColor)
axisTextColor
- the text color for the y axis.getYAxisTextColor()
public java.awt.Color getYAxisFillColor()
setYAxisFillColor(Color)
public void setYAxisFillColor(java.awt.Color axisFillColor)
axisFillColor
- the fill color for the y axis.getYAxisFillColor()
public java.awt.Color getYAxisOutlineColor()
setYAxisOutlineColor(Color)
public void setYAxisOutlineColor(java.awt.Color axisOutlineColor)
axisOutlineColor
- the outline color for the y axis.getYAxisOutlineColor()
public java.lang.String getYAxisStroke()
setYAxisStroke(String)
public void setYAxisStroke(java.lang.String axisStroke)
axisStroke
- the stroke for the y axis.getYAxisStroke()
public java.lang.String getYAxisText()
setYAxisText(String)
public void setYAxisText(java.lang.String axisText)
axisText
- the text for the y axis.getYAxisText()
public boolean isXScaleTextVisible()
setXScaleTextVisible(boolean)
public void setXScaleTextVisible(boolean scaleTextVisible)
scaleTextVisible
- if true the scale text of the x axis should be visible,false otherwise.isXScaleTextVisible()
public java.text.NumberFormat getXScaleTextFormat()
setXScaleTextFormat(NumberFormat)
public void setXScaleTextFormat(java.text.NumberFormat scaleTextFormat)
scaleTextFormat
- the scale text format for the x axis.getXScaleTextFormat()
public java.awt.Color getXScaleTextColor()
setXScaleTextColor(Color)
public void setXScaleTextColor(java.awt.Color scaleTextColor)
scaleTextColor
- the scale text color for the x axis.getXScaleTextColor()
public java.awt.Font getXScaleTextFont()
setXScaleTextFont(Font)
public void setXScaleTextFont(java.awt.Font scaleTextFont)
scaleTextFont
- the scale text font of the axis.getXScaleTextFont()
public double getXScaleValueGap()
setXScaleValueGap(double)
public void setXScaleValueGap(double scaleValueGap)
scaleValueGap
- the scale value gap for the x axis.getXScaleValueGap()
public double getXScalePixelGap()
setXScalePixelGap(double)
public void setXScalePixelGap(double scalePixelGap)
scalePixelGap
- the scale pixel gap for the x axis.getXScalePixelGap()
public double getXScaleMinValue()
setXScaleMinValue(double)
public void setXScaleMinValue(double scaleMinValue)
scaleMinValue
- The minimal scale value for the x axis.getXScaleMinValue()
public double getXScaleMaxValue()
setXScaleMaxValue(double)
public void setXScaleMaxValue(double scaleMaxValue)
scaleMaxValue
- the maximal scale value for the x axis.getXScaleMaxValue()
public java.lang.String getXScaleLineStroke()
setXScaleLineStroke(String)
public void setXScaleLineStroke(java.lang.String scaleLineStroke)
scaleLineStroke
- the stroke for the scale line in x axis.getXScaleLineStroke()
public java.awt.Color getXScaleLineColor()
setXScaleLineColor(Color)
public void setXScaleLineColor(java.awt.Color scaleLineColor)
scaleLineColor
- the color for the scale line in x axis.getXScaleLineColor()
public boolean isXScaleLineVisible()
setXScaleLineVisible(boolean)
public void setXScaleLineVisible(boolean scaleLineVisible)
scaleLineVisible
- if true the scale line in x axis should be visible.isXScaleLineVisible()
public boolean isYScaleTextVisible()
setYScaleTextVisible(boolean)
public void setYScaleTextVisible(boolean scaleTextVisible)
scaleTextVisible
- if true the scale text of the y axis should be visible, false otherwise.isYScaleTextVisible()
public boolean isYScaleTextInside()
setYScaleTextInside(boolean)
public void setYScaleTextInside(boolean scaleTextInside)
scaleTextInside
- if true the scale text of the y axis should be in inside, false otherwise.isYScaleTextInside()
public java.text.NumberFormat getYScaleTextFormat()
setYScaleTextFormat(NumberFormat)
public void setYScaleTextFormat(java.text.NumberFormat scaleTextFormat)
scaleTextFormat
- the scale text format for the y axis.getYScaleTextFormat()
,
#NumberFormat
public java.awt.Color getYScaleTextColor()
setYScaleTextColor(Color)
public void setYScaleTextColor(java.awt.Color scaleTextColor)
scaleTextColor
- the text color for the scale of the y axis.getYScaleTextColor()
public java.awt.Font getYScaleTextFont()
setYScaleTextFont(Font)
public void setYScaleTextFont(java.awt.Font scaleTextFont)
scaleTextFont
- the scale text font for the y axis.getYScaleTextFont()
public int getYScalePixelGap()
setYScalePixelGap(int)
public void setYScalePixelGap(int scalePixelGap)
scalePixelGap
- the new scale pixel gap for the y axis.getYScalePixelGap()
public double getYScaleValueGap()
setYScaleValueGap(double)
public void setYScaleValueGap(double scaleValueGap)
scaleValueGap
- the new scale value gap for the y axis.getYScaleValueGap()
public java.lang.String getYScaleLineStroke()
setYScaleLineStroke(String)
public void setYScaleLineStroke(java.lang.String scaleLineStroke)
scaleLineStroke
- new stroke for the scale line in y axis.getYScaleLineStroke()
public java.awt.Color getYScaleLineColor()
setYScaleLineColor(Color)
public void setYScaleLineColor(java.awt.Color scaleLineColor)
scaleLineColor
- the color for the scale line in y axis.getYScaleLineColor()
public boolean isYScaleLineVisible()
setYScaleLineVisible(boolean)
public void setYScaleLineVisible(boolean scaleLineVisible)
scaleLineVisible
- if true the scale line in y axis should be visible, false otherwise.isYScaleLineVisible()
public java.awt.geom.Rectangle2D.Double getDrawBound()
public double getXAxisStartPosition()
#setXAxisStartValue(double)
public void setXAxisStartPosition(double axisStartPosition)
axisStartValue
- the start value for the x axis.#getXAxisStartValue()
public double getYAxisStartPosition()
setYAxisStartPosition(double)
public void setYAxisStartPosition(double axisStartValue)
axisStartValue
- the start value for the y axis.getYAxisStartPosition()
public java.util.List getXScaleTextList()
public void setXScaleTextList(java.util.List xScaleTextList)
xScaleTextList
- a new List
object for the scale text which is painted along the x-axispublic void addXScaleText(java.lang.String text)
text
- a new specified scale textpublic int getXScaleTextOrientation()
setXScaleTextOrientation(int)
public void setXScaleTextOrientation(int scaleTextOrientation)
scaleTextOrientation
- the text orientation for the scale in x axis.getXScaleTextOrientation()
public java.util.List getXScaleHideValueIndex()
#setXScaleHideValueIndex(int)
public void setXScaleHideValueIndex(java.util.List scaleHideValueIndex)
scaleHideValueIndex
- the hide scale value index in x axis.getXScaleHideValueIndex()
public java.util.List getYScaleHideValueIndex()
#setYScaleHideValueIndex(int)
public void setYScaleHideValueIndex(java.util.List scaleHideValueIndex)
scaleHideValueIndex
- the hide scale value index in y axis.getYScaleHideValueIndex()
public boolean isYScaleValueGapAutoCalculate()
setYScaleValueGapAutoCalculate(boolean)
public void setYScaleValueGapAutoCalculate(boolean scaleValueGapAutoCaculate)
scaleValueGapAutoCaculate
- if true the value gap of the y axis should be calculated automatically, false otherwise.isYScaleValueGapAutoCalculate()
public boolean isXAxisUnitVisible()
setXAxisUnitVisible(boolean)
public void setXAxisUnitVisible(boolean axisUnitVisible)
axisUnitVisible
- if true the unit of the x axis will be visible, false otherwise.isXAxisUnitVisible()
public java.awt.Color getXAxisUnitColor()
setXAxisUnitColor(Color)
public void setXAxisUnitColor(java.awt.Color axisUnitColor)
axisUnitColor
- the color for the unit of the x axis.getXAxisUnitColor()
public java.awt.Font getXAxisUnitFont()
setXAxisUnitFont(Font)
public void setXAxisUnitFont(java.awt.Font axisUnitFont)
axisUnitFont
- new font for the x axis unit.getXAxisUnitFont()
public java.lang.String getYAxisUnit()
setYAxisUnit(String)
public void setYAxisUnit(java.lang.String axisUnit)
axisUnit
- the unit of the y axis.getYAxisUnit()
public boolean isYAxisUnitVisible()
setYAxisUnitVisible(boolean)
public void setYAxisUnitVisible(boolean axisUnitVisible)
axisUnitVisible
- if true the unit of the y axis will be visible, false otherwise.isYAxisUnitVisible()
public java.awt.Color getYAxisUnitColor()
setYAxisUnitColor(Color)
public void setYAxisUnitColor(java.awt.Color axisUnitColor)
axisUnitColor
- the color for the unit of the y axis.getYAxisUnitColor()
public java.awt.Font getYAxisUnitFont()
setYAxisUnitFont(Font)
public void setYAxisUnitFont(java.awt.Font axisUnitFont)
axisUnitFont
- the font for the y axis unit.getYAxisUnitFont()
public double getYScaleMinValue()
setYScaleMinValue(double)
public void setYScaleMinValue(double scaleMinValue)
scaleMinValue
- the minimal value for the y scale.getYScaleMinValue()
public double getYScaleMaxValue()
setYScaleMaxValue(double)
public void setYScaleMaxValue(double scaleMaxValue)
scaleMaxValue
- the maximal value for the y scale.getYScaleMaxValue()
public boolean isXScaleTextOnTop()
setXScaleTextOnTop(boolean)
public java.util.List getMarkers()
public void setMarkers(java.util.List markers)
markers
- a new List
for the markerspublic void addMarker(double value, java.awt.Color color)
value
- a double
valuecolor
- a Color
objectaddMarker(Marker)
public void removeMarker(Marker marker)
Marker
object from the markersmarker
- a specified Marker
objectpublic void addMarker(Marker marker)
Marker
object to the list of the markers.marker
- a new specified Marker
objectpublic void setXScaleTextOnTop(boolean scaleTextOnTop)
scaleTextOnTop
- if true the x scale text will be on the top of the x axis.isXScaleTextOnTop()
protected void setChartSVGAttribute(AbstractSVGChart abschart)
setChartSVGAttribute
in class AbstractChart
Copyright © 2002 - 2010 Serva Software. All Rights Reserved.