public class Gantt extends Points
Title: Gantt class
Description: Gantt Series.
Example:
ganttSeries = new com.steema.teechart.styles.Gantt(myChart.getChart()); ganttSeries.fillSampleValues();
Copyright (c) 2005-2019 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Series.MarkTextResolver
iStacked, point
linePen, treatNans, treatnulls
AUTODEPTH, AUTOZORDER, bActive, bBrush, bColorEach, calcVisiblePoints, colorMember, customMarkText, drawBetweenPoints, endZ, firstVisible, hasZValues, iColors, iNumSampleValues, iZOrder, labelMember, lastVisible, listenerList, mandatory, manualData, marks, middleZ, notMandatory, oldDataSource, percentDecimal, percentFormat, sLabels, startZ, useAxis, useSeriesColor, valueFormat, vxValues, vyValues, yMandatory
chart, InternalUse
Constructor and Description |
---|
Gantt()
Creates a new Gantt series.
|
Gantt(IBaseChart c) |
Modifier and Type | Method and Description |
---|---|
int |
add(DateTime start,
DateTime endDate,
double y,
Color color)
Adds a new Gantt point to the series, at the start and endDate positions.
|
int |
add(DateTime start,
DateTime endDate,
double y,
java.lang.String text) |
int |
add(DateTime start,
DateTime endDate,
double y,
java.lang.String text,
Color color) |
int |
add(double start,
double endDate,
double y)
Adds a new Gantt bar with start and end coordinates to the Series.
|
int |
add(double start,
double endDate,
double y,
Color color)
Adds a new Gantt bar with start and end coordinates and color.
|
int |
add(double start,
double endDate,
double y,
java.lang.String text)
Adds a new Gantt bar with start and end coordinates and label.
|
int |
add(double start,
double endDate,
double y,
java.lang.String text,
Color color)
Adds a new Gantt bar with start and end coordinates, label and color.
|
protected void |
addSampleValues(int numValues)
Adds random values to series.
|
boolean |
clickedPointer(int valueIndex,
int tmpX,
int tmpY,
int x,
int y)
For internal use.
|
protected void |
drawMark(int valueIndex,
java.lang.String s,
SeriesMarksPosition aPosition) |
void |
drawValue(int valueIndex)
Called internally.
|
ChartPen |
getConnectingPen()
Determines the pen to draw the optional lines that connect Gantt
Bars.
|
java.lang.String |
getDescription()
Gets descriptive text.
|
ValueList |
getEndValues()
Defines the ending Gantt bar date value.
The starting Gantt bar point is stored at TGanttSeries.StartValues StartValues and EndValues can be specified both as DateTime or double values. |
double |
getMaxXValue()
Returns the Maximum Value of the Series X Values List.
|
ValueList |
getNextTasks()
Holds the Gantt bar index each Gantt bar is connected to.
|
ValueList |
getStartValues()
Defines the starting Gantt bar date values.
The ending Gantt bar point date is stored at TGanttSeries.EndValues. StartValues and EndValues can be specified both as DateTime or double values. |
boolean |
isValidSourceOf(Series value)
True if Series source is Gantt.
It returns false if the Value parameter is the same as Self. |
void |
prepareForGallery(boolean isEnabled) |
assign, canDoExtra, createSubGallery, getColor, getLinePen, setColor, setColorEach, setSubGallery
addSeriesMouseListener, calcHorizMargins, calcVerticalMargins, calcXPos, calcYPos, calcZOrder, clicked, drawLegendShape, drawPointer, getMaxYValue, getMinXValue, getMinYValue, getOriginPos, getPointer, getStacked, onGetPointerStyle, removePointerStyleResolver, removeSeriesMouseListener, sameClassOrigin, setChart, setPointerStyleResolver, setStacked
add, add, calcMinMaxValue, doNotPaintNull, getTreatNaNAsNull, getTreatNulls, IgnoreNull, setTreatNaNAsNull, setTreatNulls
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, addSeriesPaintListener, addValues, assignDispose, assignValues, associatedToAxis, beginUpdate, calcFirstLastVisibleIndex, calcPercentSt, calcPosValue, calculateMarkPosition, calcXPosValue, calcXSizeValue, calcYPosValue, calcYSizeValue, canAddRandomPoints, changeType, checkDataSource, checkMouse, checkOrder, checkOtherSeries, clear, clearLists, clicked, clone, cloneSeries, convertArray, countLegendItems, createNewSeries, createNewSeries, createNewSeries, dataSourceArray, delete, delete, delete, dispose, doAfterDrawValues, doBeforeDrawChart, doBeforeDrawValues, doClick, doClickPointer, doDoubleClick, draw, drawHiddenValue, drawLegend, drawLegend, drawMarks, drawMarksSeries, drawSeries, drawSeriesForward, drawValuesForward, endUpdate, fillSampleValues, fillSampleValues, fireSeriesMouseEvent, fireSeriesPaint, firstDisplayed, galleryChanged3D, getActive, getAllowSinglePoint, getBitmapEditor, getBrush, 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, getMaxZValue, getMiddleZ, 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, lastDisplayed, lastVisibleMark, legendItemColor, legendToValueIndex, maxMarkWidth, moreSameZOrder, mouseEvent, newFromType, numSampleValues, onDisposing, prepareLegendCanvas, randomBounds, readResolve, recalcGetAxis, refreshSeries, removeMarkTextResolver, removeSeriesPaintListener, repaint, sameClass, setActive, 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, setTitle, setValueFormat, setValueList, setVerticalAxis, setVisible, setXValues, setYValues, setZOrder, setZPositions, sortByLabels, sortByLabels, sortDrawSeries, swapValueIndex, titleOrName, toString, valueListOfAxis, valuesListAdd, xScreenToValue, yScreenToValue
getChart, invalidate, setBooleanProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChart, invalidate
public Gantt()
public Gantt(IBaseChart c)
public ValueList getStartValues()
public ValueList getEndValues()
public ValueList getNextTasks()
protected void addSampleValues(int numValues)
addSampleValues
in class Series
numValues
- intpublic ChartPen getConnectingPen()
public void drawValue(int valueIndex)
drawValue
in interface ISeries
drawValue
in class CustomPoint
valueIndex
- intpublic boolean clickedPointer(int valueIndex, int tmpX, int tmpY, int x, int y)
clickedPointer
in class CustomPoint
valueIndex
- inttmpX
- inttmpY
- intx
- inty
- intprotected void drawMark(int valueIndex, java.lang.String s, SeriesMarksPosition aPosition)
drawMark
in class CustomPoint
public void prepareForGallery(boolean isEnabled)
prepareForGallery
in class Series
public int add(DateTime start, DateTime endDate, double y, Color color)
start
- DateTimeendDate
- DateTimey
- doublecolor
- Colorpublic int add(double start, double endDate, double y, Color color)
start
- doubleendDate
- doubley
- doublecolor
- Colorpublic int add(double start, double endDate, double y)
start
- doubleendDate
- doubley
- doublepublic int add(double start, double endDate, double y, java.lang.String text)
start
- doubleendDate
- doubley
- doubletext
- Stringpublic int add(double start, double endDate, double y, java.lang.String text, Color color)
start
- doubleendDate
- doubley
- doubletext
- Stringcolor
- Colorpublic boolean isValidSourceOf(Series value)
isValidSourceOf
in class Series
value
- Seriespublic double getMaxXValue()
getMaxXValue
in class CustomPoint
public java.lang.String getDescription()
getDescription
in class Points