public class Calendar extends Series
Title: Calendar class
Description: Calendar Series.
Example:
calendar = new Calendar[3]; for (int t=0; t < 3; t++) { calendar[t] = new Calendar(chart[t].getChart()); calendar[t].getMarks().setVisible(false); calendar[t].setShowInLegend(false); calendar[t].getDays().setTransparent(true); calendar[t].getDays().setVisible(true); calendar[t].getMonths().setTransparent(true); calendar[t].getMonths().setVisible(true); calendar[t].getWeekDays().setFormat("E");
Copyright (c) 2005-2019 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Modifier and Type | Class and Description |
---|---|
class |
Calendar.CalendarCell
Title: CalendarCell class
|
class |
Calendar.CalendarCellUpper
Title: CalendarCellUpper class
|
class |
Calendar.CalendarChangeEvent |
static interface |
Calendar.CalendarChangeListener |
Series.MarkTextResolver
Modifier and Type | Field and Description |
---|---|
protected DateTimeResolver |
customDate |
int |
dayOneColumn |
int |
dayOneRow |
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 |
---|
Calendar() |
Calendar(IBaseChart c) |
Modifier and Type | Method and Description |
---|---|
void |
addCalendarChangeListener(Calendar.CalendarChangeListener l) |
protected DateTime |
cellDate(int aCol,
int aRow) |
protected void |
checkClick(int x,
int y) |
protected void |
checkClick(Point p) |
int |
clicked(int x,
int y)
Returns the ValueIndex of the "clicked" point in the Series.
|
DateTime |
clickedDate(int x,
int y)
Returns the Date of the "clicked" cell in the Calendar.
|
protected void |
draw() |
protected void |
drawCell(Calendar.CalendarCell cell,
int column,
int row,
java.lang.String text) |
protected void |
fireCalendarChangeEvent(Calendar.CalendarChangeEvent se) |
int |
getColumns()
Returns the number of Columns present in the Calender Series.
|
DateTime |
getDate()
Defines a day and causes Calender Series to display the associated month.
|
Calendar.CalendarCell |
getDays()
Defines Calendar Cell appearance characteristics for calendar days.
|
java.lang.String |
getDescription()
Gets description text.
|
int |
getMonth()
Returns month number of currently displayed month.
|
Calendar.CalendarCellUpper |
getMonths()
Defines Calender Cell appearance for the month name.
|
Button |
getNextMonthButton()
Gets the month after the present one.
Returns the button used to scroll the calendar to "next" month. |
ChartPen |
getPen()
Element Pen Characteristics.
|
Menu |
getPopupMenu()
Returns the popupmenu used by the calendar to show all the month names
(when rightclicking the month name on the calendar).
This popupmenu is used to go to the desired month. |
Button |
getPreviousMonthButton()
Gets the month before the present one.
Returns the button used to scroll the calendar to "previous" month. |
int |
getRows()
Returns the number of Rows present in the Calender Series.
|
Calendar.CalendarCell |
getSunday()
Defines Calender Cell appearance for all Sundays.
|
Calendar.CalendarCell |
getToday()
Defines Calender Cell appearance for the highlighted day.
|
Calendar.CalendarCell |
getTrailing()
Defines Calender Cell appearance for the trailing days.
|
Calendar.CalendarCellUpper |
getWeekDays()
Defines Calender Cell appearance for weekday titles.
|
void |
monthClick(java.lang.Object sender) |
void |
nextMonth()
Moves the Calendar series onto the month after the present one.
|
protected int |
numSampleValues() |
void |
prepareForGallery(boolean isEnabled) |
void |
previousMonth()
Moves the Calendar series onto the month before the present one.
|
protected java.lang.Object |
readResolve() |
Rectangle |
rectCell(int column,
int row)
Returns the bounderies of a 2D-Rectangle defining the outline of the
specified Calender series cell.
|
void |
removeCalendarChangeListener(Calendar.CalendarChangeListener l) |
void |
removeDateTimeResolver() |
void |
setActive(boolean value)
Shows or hides this series.
It can be changed both at design time or runtime. |
void |
setChart(IBaseChart c)
Chart associated with this object.
|
void |
setDate(DateTime value)
Sets a day and causes Calender Series to display the associated month.
|
void |
setDateTimeResolver(DateTimeResolver resolver) |
void |
setShowButtons(boolean value)
Set both buttons visible to true/false
|
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, associatedToAxis, beginUpdate, calcFirstLastVisibleIndex, calcHorizMargins, calcPercentSt, calcPosValue, calculateMarkPosition, calcVerticalMargins, calcXPos, calcXPosValue, calcXSizeValue, calcYPos, calcYPosValue, calcYSizeValue, calcZOrder, canAddRandomPoints, changeType, checkDataSource, checkMouse, checkOrder, checkOtherSeries, clear, clearLists, clicked, clone, cloneSeries, convertArray, countLegendItems, createNewSeries, createNewSeries, createNewSeries, createSubGallery, dataSourceArray, delete, delete, delete, dispose, doAfterDrawValues, doBeforeDrawChart, doBeforeDrawValues, doClick, doClickPointer, doDoubleClick, drawHiddenValue, drawLegend, drawLegend, drawLegendShape, drawMark, drawMarks, drawMarksSeries, drawSeries, drawSeriesForward, drawValue, drawValuesForward, endUpdate, fillSampleValues, fillSampleValues, fireSeriesMouseEvent, fireSeriesPaint, firstDisplayed, galleryChanged3D, getActive, getAllowSinglePoint, getBitmapEditor, getBrush, 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, onDisposing, prepareLegendCanvas, randomBounds, recalcGetAxis, refreshSeries, removeMarkTextResolver, removeSeriesMouseListener, removeSeriesPaintListener, repaint, sameClass, setColor, 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, 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
protected transient DateTimeResolver customDate
public int dayOneRow
public int dayOneColumn
public Calendar()
public Calendar(IBaseChart c)
protected java.lang.Object readResolve()
readResolve
in class Series
public void setDateTimeResolver(DateTimeResolver resolver)
public void removeDateTimeResolver()
public ChartPen getPen()
public DateTime getDate()
public void setDate(DateTime value)
value
- DateTimeprotected void drawCell(Calendar.CalendarCell cell, int column, int row, java.lang.String text)
public void addCalendarChangeListener(Calendar.CalendarChangeListener l)
public void removeCalendarChangeListener(Calendar.CalendarChangeListener l)
protected void fireCalendarChangeEvent(Calendar.CalendarChangeEvent se)
public void prepareForGallery(boolean isEnabled)
prepareForGallery
in class Series
public Calendar.CalendarCell getDays()
public Calendar.CalendarCellUpper getWeekDays()
public Calendar.CalendarCellUpper getMonths()
public Calendar.CalendarCell getToday()
public Calendar.CalendarCell getSunday()
public Calendar.CalendarCell getTrailing()
public Button getNextMonthButton()
public Button getPreviousMonthButton()
protected int numSampleValues()
numSampleValues
in class Series
public int clicked(int x, int y)
public DateTime clickedDate(int x, int y)
x
- inty
- intpublic Rectangle rectCell(int column, int row)
column
- introw
- intpublic void monthClick(java.lang.Object sender)
public void setActive(boolean value)
Series
public void setShowButtons(boolean value)
value
- public void setChart(IBaseChart c)
TeeBase
public int getRows()
public java.lang.String getDescription()
getDescription
in class Series
protected DateTime cellDate(int aCol, int aRow)
public int getColumns()
public Menu getPopupMenu()
protected void checkClick(int x, int y)
protected void checkClick(Point p)
public void nextMonth()
public final void previousMonth()
public int getMonth()