com.steema.teechart.styles
Class Clock

java.lang.Object
  extended by com.steema.teechart.TeeBase
      extended by com.steema.teechart.styles.Series
          extended by com.steema.teechart.styles.Circular
              extended by com.steema.teechart.styles.CustomPolar
                  extended by com.steema.teechart.styles.Custom2DPolar
                      extended by com.steema.teechart.styles.Clock
All Implemented Interfaces:
ISeries, java.io.Serializable, java.lang.Cloneable

public class Clock
extends Custom2DPolar

Title: Clock class

Description: Clock Series

Example:


 clock = new Clock(myChart.getChart());
 clock.setColor(Color.RED);
 clock.setShowInLegend(false);
 clock.getBrush().setColor(Color.WHITE);
 clock.getBrush().setColor(Color.RED);
 clock.getPenHours().setColor(Color.BLACK);
 clock.getPenMinutes().setColor(Color.BLACK);
 clock.getPenSeconds().setColor(Color.BLACK);
 

Copyright (c) 2005-2013 by Steema Software SL. All Rights Reserved.

Company: Steema Software SL

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.steema.teechart.styles.Series
Series.MarkTextResolver
 
Field Summary
 
Fields inherited from class com.steema.teechart.styles.CustomPolar
iMaxValuesCount, iPointer, treatnulls
 
Fields inherited from class com.steema.teechart.styles.Circular
circleHeight, circleWidth, iAdjustCircleForMarks, iCircleXCenter, iCircleYCenter, iXRadius, iYRadius, PIDEGREE, rCircleRect, rotDegree
 
Fields inherited from class com.steema.teechart.styles.Series
AUTODEPTH, AUTOZORDER, bActive, bBrush, bColorEach, calcVisiblePoints, colorMember, customMarkText, drawBetweenPoints, endZ, firstVisible, hasZValues, iColors, iNumSampleValues, iZOrder, labelMember, lastVisible, listenerList, mandatory, manualData, marks, middleZ, notMandatory, percentDecimal, percentFormat, sLabels, startZ, useAxis, useSeriesColor, valueFormat, vxValues, vyValues, yMandatory
 
Fields inherited from class com.steema.teechart.TeeBase
chart, InternalUse
 
Constructor Summary
Clock()
           
Clock(IBaseChart c)
           
 
Method Summary
 void dispose()
           
protected  void draw()
           
protected  java.lang.String getCircleLabel(double angle, int index)
           
 java.lang.String getDescription()
          Gets descriptive text.
 ChartPen getPenHours()
          Sets the Pen for the Clock's hour hand.
 ChartPen getPenMinutes()
          Sets the Pen for the Clock's minute hand.
 ChartPen getPenSeconds()
          Sets the Pen for the Clock's second hand.
 ClockStyle getStyle()
          The style of the clock figures, Roman or Decimal.
 javax.swing.Timer getTimer()
          Returns the Timer used by the clock series.
protected  int numSampleValues()
           
protected  java.lang.Object readResolve()
           
 void setChart(IBaseChart c)
          Chart associated with this object.
 void setStyle(ClockStyle value)
          Sets the style of the clock figures, Roman or Decimal.
 
Methods inherited from class com.steema.teechart.styles.Custom2DPolar
galleryChanged3D, prepareForGallery
 
Methods inherited from class com.steema.teechart.styles.CustomPolar
calcXPos, calcYPos, clicked, clickedSegment, doAfterDrawValues, doBeforeDrawValues, drawLegendShape, drawMark, drawRing, drawValue, drawZone, getAngleIncrement, getAngleValues, getBrush, getCircleCenter, getCircleLabels, getCircleLabelsFont, getCircleLabelsInside, getCircleLabelsRotated, getCirclePen, getClockWiseLabels, getCloseCircle, getFont, getPen, getPointer, getRadiusIncrement, getRadiusValues, getTransparency, getTreatNulls, getXValue, internalDrawValue, onGetPointerStyle, removePointerStyleResolver, setAngleIncrement, setCircleLabels, setCircleLabelsInside, setCircleLabelsRotated, setClockWiseLabels, setCloseCircle, setColor, setPointerStyleResolver, setRadiusIncrement, setTransparency, setTreatNulls
 
Methods inherited from class com.steema.teechart.styles.Circular
adjustCircleRect, angleToPos, associatedToAxis, calcCircleBackColor, calcCircleGradient, calcRadius, getCircleBackColor, getCircled, getCircleGradient, getCircleHeight, getCircleRect, getCircleWidth, getCircleXCenter, getCircleYCenter, getCustomXRadius, getCustomYRadius, getRotationAngle, getUniqueCustomRadius, getXRadius, getYRadius, onDisposing, pointToAngle, pointToRadius, prepareLegendCanvas, reCalcCircleRect, rotate, setActive, setCircleBackColor, setCircled, setCustomXRadius, setCustomYRadius, setParentProperties, setRotationAngle, setUniqueCustomRadius, shouldSerializeCircleBackColor
 
Methods inherited from class com.steema.teechart.styles.Series
add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, addChartValue, added, addedValue, addNull, addNullXY, addSampleValues, addSeriesMouseListener, addSeriesPaintListener, addValues, assign, assignDispose, assignValues, beginUpdate, calcFirstLastVisibleIndex, calcHorizMargins, calcPercentSt, calcPosValue, calculateMarkPosition, calcVerticalMargins, calcXPosValue, calcXSizeValue, calcYPosValue, calcYSizeValue, calcZOrder, canAddRandomPoints, changeType, checkDataSource, checkMouse, checkOrder, checkOtherSeries, clear, clearLists, clicked, clone, cloneSeries, convertArray, countLegendItems, createNewSeries, createNewSeries, createNewSeries, createSubGallery, dataSourceArray, delete, delete, delete, doBeforeDrawChart, doClick, doClickPointer, doDoubleClick, drawHiddenValue, drawLegend, drawLegend, drawMarks, drawMarksSeries, drawSeries, drawSeriesForward, drawValuesForward, endUpdate, fillSampleValues, fillSampleValues, fireSeriesMouseEvent, fireSeriesPaint, firstDisplayed, getActive, getAllowSinglePoint, getBitmapEditor, getColor, getColorEach, getColorMember, getColors, getCount, getCountLegendItems, getCursor, getCustomHorizAxis, getCustomVertAxis, getDataSource, getDefaultColor, getDefaultNullValue, getDepth, getEndZ, getFields, getFirstVisible, getFunction, getHasZValues, getHorizAxis, getHorizontalAxis, getLabelMember, getLabels, getLastVisible, getLegendString, getMandatory, getMandatoryAxis, getMarks, getMarkText, getMarkValue, getMaxXValue, getMaxYValue, getMaxZValue, getMiddleZ, getMinXValue, getMinYValue, getMinZValue, getNotMandatory, getNumGallerySeries, getNumSampleValues, getOriginValue, getPercentFormat, getPoint, getSeriesColor, getShowInLegend, getStartZ, getTitle, getUseAxis, getValueColor, getValueFormat, getValueIndexSwapper, getValueList, getValueList, getValueMarkText, getValuesLists, getVertAxis, getVerticalAxis, getVisible, getXValues, getYMandatory, getYValueList, getYValues, getZOrder, hasClickEvents, hasColors, hasDataSource, hasLabels, hasListenersOf, hasNoMandatoryValues, isNull, isPointInChartRect, isValidSeriesSource, isValidSourceOf, lastDisplayed, lastVisibleMark, legendItemColor, legendToValueIndex, maxMarkWidth, moreSameZOrder, mouseEvent, newFromType, randomBounds, recalcGetAxis, refreshSeries, removeMarkTextResolver, removeSeriesMouseListener, removeSeriesPaintListener, repaint, sameClass, setColorEach, setColorMember, setColors, setCursor, setCustomHorizAxis, setCustomHorizAxis, setCustomVertAxis, setCustomVertAxis, setDataSource, setDefaultNullValue, setDepth, setEndZ, setFunction, setHorizontal, setHorizontalAxis, setLabelMember, setLabels, setMarks, setMarkTextResolver, setMiddleZ, setNull, setNull, setPercentFormat, setSeriesColor, setShowInLegend, setStartZ, setSubGallery, setTitle, setValueFormat, setValueList, setVerticalAxis, setVisible, setXValues, setYValues, setZOrder, setZPositions, sortByLabels, sortByLabels, swapValueIndex, titleOrName, toString, valueListOfAxis, valuesListAdd, xScreenToValue, yScreenToValue
 
Methods inherited from class com.steema.teechart.TeeBase
getChart, invalidate, setBooleanProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.steema.teechart.styles.ISeries
getChart, invalidate
 

Constructor Detail

Clock

public Clock()

Clock

public Clock(IBaseChart c)
Method Detail

readResolve

protected java.lang.Object readResolve()
Overrides:
readResolve in class Circular

setChart

public void setChart(IBaseChart c)
Description copied from class: TeeBase
Chart associated with this object.

Specified by:
setChart in interface ISeries
Overrides:
setChart in class CustomPolar
Parameters:
c - IBaseChart

dispose

public void dispose()
Specified by:
dispose in interface ISeries
Overrides:
dispose in class Series

draw

protected void draw()
Overrides:
draw in class CustomPolar

getCircleLabel

protected java.lang.String getCircleLabel(double angle,
                                          int index)
Overrides:
getCircleLabel in class CustomPolar

numSampleValues

protected int numSampleValues()
Overrides:
numSampleValues in class Series

getTimer

public javax.swing.Timer getTimer()
Returns the Timer used by the clock series.
Internal timer used to display the clock seconds arrow in realtime.
Setting the Timer Interval property to less than one second can be cpu consuming.

Returns:
Timer

getDescription

public java.lang.String getDescription()
Gets descriptive text.

Overrides:
getDescription in class Series
Returns:
String

getPenHours

public ChartPen getPenHours()
Sets the Pen for the Clock's hour hand.

Returns:
ChartPen

getPenMinutes

public ChartPen getPenMinutes()
Sets the Pen for the Clock's minute hand.

Returns:
ChartPen

getPenSeconds

public ChartPen getPenSeconds()
Sets the Pen for the Clock's second hand.

Returns:
ChartPen

getStyle

public ClockStyle getStyle()
The style of the clock figures, Roman or Decimal.
Default value: ClockStyle.Roman

Returns:
ClockStyle

setStyle

public void setStyle(ClockStyle value)
Sets the style of the clock figures, Roman or Decimal.
Default value: ClockStyle.Roman

Parameters:
value - ClockStyle