Java TimePeriod类代码示例

本文整理汇总了Java中org.jfree.data.time.TimePeriod的典型用法代码示例。如果您正苦于以下问题:Java TimePeriod类的具体用法?Java TimePeriod怎么用?Java TimePeriod使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Java TimePeriod类代码示例

TimePeriod类属于org.jfree.data.time包,在下文中一共展示了TimePeriod类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: getStartValue

import org.jfree.data.time.TimePeriod; //导入依赖的package包/类
/**
 * Returns the start value of a sub-interval for a given item.
 *
 * @param rowKey  the row key.
 * @param columnKey  the column key.
 * @param subinterval  the subinterval.
 *
 * @return The start value (possibly <code>null</code>).
 */
public Number getStartValue(Comparable rowKey, Comparable columnKey, 
                            int subinterval) {
    Number result = null;
    int row = getRowIndex(rowKey);
    TaskSeries series = (TaskSeries) this.data.get(row);
    Task task = series.get(columnKey.toString());
    if (task != null) {
        Task sub = task.getSubtask(subinterval);
        if (sub != null) {
            TimePeriod duration = sub.getDuration();
            result = new Long(duration.getStart().getTime());
        }
    }
    return result;
} 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:25,代码来源:TaskSeriesCollection.java

示例2: getEndValue

import org.jfree.data.time.TimePeriod; //导入依赖的package包/类
/**
 * Returns the end value of a sub-interval for a given item.
 *
 * @param rowKey  the row key.
 * @param columnKey  the column key.
 * @param subinterval  the subinterval.
 *
 * @return The end value (possibly <code>null</code>).
 */
public Number getEndValue(Comparable rowKey, Comparable columnKey, 
                          int subinterval) {
    Number result = null;
    int row = getRowIndex(rowKey);
    TaskSeries series = (TaskSeries) this.data.get(row);
    Task task = series.get(columnKey.toString());
    if (task != null) {
        Task sub = task.getSubtask(subinterval);
        if (sub != null) {
            TimePeriod duration = sub.getDuration();
            result = new Long(duration.getEnd().getTime());
        }
    }
    return result;
} 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:25,代码来源:TaskSeriesCollection.java

示例3: getStartValue

import org.jfree.data.time.TimePeriod; //导入依赖的package包/类
/**
 * Returns the start value of a sub-interval for a given item.
 *
 * @param rowKey  the row key.
 * @param columnKey  the column key.
 * @param subinterval  the subinterval.
 *
 * @return The start value (possibly <code>null</code>).
 */
@Override
public Number getStartValue(Comparable rowKey, Comparable columnKey,
                            int subinterval) {
    Number result = null;
    int row = getRowIndex(rowKey);
    TaskSeries series = (TaskSeries) this.data.get(row);
    Task task = series.get(columnKey.toString());
    if (task != null) {
        Task sub = task.getSubtask(subinterval);
        if (sub != null) {
            TimePeriod duration = sub.getDuration();
            result = new Long(duration.getStart().getTime());
        }
    }
    return result;
} 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:26,代码来源:TaskSeriesCollection.java

示例4: getEndValue

import org.jfree.data.time.TimePeriod; //导入依赖的package包/类
/**
 * Returns the end value of a sub-interval for a given item.
 *
 * @param rowKey  the row key.
 * @param columnKey  the column key.
 * @param subinterval  the subinterval.
 *
 * @return The end value (possibly <code>null</code>).
 */
@Override
public Number getEndValue(Comparable rowKey, Comparable columnKey,
                          int subinterval) {
    Number result = null;
    int row = getRowIndex(rowKey);
    TaskSeries series = (TaskSeries) this.data.get(row);
    Task task = series.get(columnKey.toString());
    if (task != null) {
        Task sub = task.getSubtask(subinterval);
        if (sub != null) {
            TimePeriod duration = sub.getDuration();
            result = new Long(duration.getEnd().getTime());
        }
    }
    return result;
} 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:26,代码来源:TaskSeriesCollection.java

示例5: getStartValue

import org.jfree.data.time.TimePeriod; //导入依赖的package包/类
/**
 * Returns the start value of a sub-interval for a given item.
 *
 * @param rowKey  the row key.
 * @param columnKey  the column key.
 * @param subinterval  the subinterval.
 *
 * @return The start value (possibly {@code null}).
 */
@Override
public Number getStartValue(Comparable rowKey, Comparable columnKey,
                            int subinterval) {
    Number result = null;
    int row = getRowIndex(rowKey);
    TaskSeries series = (TaskSeries) this.data.get(row);
    Task task = series.get(columnKey.toString());
    if (task != null) {
        Task sub = task.getSubtask(subinterval);
        if (sub != null) {
            TimePeriod duration = sub.getDuration();
            result = new Long(duration.getStart().getTime());
        }
    }
    return result;
} 
开发者ID:jfree,项目名称:jfreechart,代码行数:26,代码来源:TaskSeriesCollection.java

示例6: getEndValue

import org.jfree.data.time.TimePeriod; //导入依赖的package包/类
/**
 * Returns the end value of a sub-interval for a given item.
 *
 * @param rowKey  the row key.
 * @param columnKey  the column key.
 * @param subinterval  the subinterval.
 *
 * @return The end value (possibly {@code null}).
 */
@Override
public Number getEndValue(Comparable rowKey, Comparable columnKey,
                          int subinterval) {
    Number result = null;
    int row = getRowIndex(rowKey);
    TaskSeries series = (TaskSeries) this.data.get(row);
    Task task = series.get(columnKey.toString());
    if (task != null) {
        Task sub = task.getSubtask(subinterval);
        if (sub != null) {
            TimePeriod duration = sub.getDuration();
            result = new Long(duration.getEnd().getTime());
        }
    }
    return result;
} 
开发者ID:jfree,项目名称:jfreechart,代码行数:26,代码来源:TaskSeriesCollection.java

示例7: getEntityHyperlink

import org.jfree.data.time.TimePeriod; //导入依赖的package包/类
@Override
public JRPrintHyperlink getEntityHyperlink(ChartEntity entity)
{
	JRPrintHyperlink printHyperlink = null;
	if (hasHyperlinks() && entity instanceof XYItemEntity)
	{
		XYItemEntity itemEntity = (XYItemEntity) entity;
		TimePeriodValuesCollection dataset = (TimePeriodValuesCollection) itemEntity.getDataset();
		TimePeriodValues series = dataset.getSeries(itemEntity.getSeriesIndex());
		Map<TimePeriod, JRPrintHyperlink> serieHyperlinks = itemHyperlinks.get(series.getKey());
		if (serieHyperlinks != null)
		{
			TimePeriod timePeriod = series.getTimePeriod(itemEntity.getItem());
			printHyperlink = serieHyperlinks.get(timePeriod);
		}
	}
	return printHyperlink;
} 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:19,代码来源:TimePeriodChartHyperlinkProvider.java

示例8: getStartValue

import org.jfree.data.time.TimePeriod; //导入依赖的package包/类
/**
 * Returns the start value of a sub-interval for a given item.
 *
 * @param rowKey  the row key.
 * @param columnKey  the column key.
 * @param subinterval  the subinterval.
 *
 * @return The start value (possibly <code>null</code>).
 */
public Number getStartValue(Comparable rowKey, Comparable columnKey,
                            int subinterval) {
    Number result = null;
    int row = getRowIndex(rowKey);
    TaskSeries series = (TaskSeries) this.data.get(row);
    Task task = series.get(columnKey.toString());
    if (task != null) {
        Task sub = task.getSubtask(subinterval);
        if (sub != null) {
            TimePeriod duration = sub.getDuration();
            result = new Long(duration.getStart().getTime());
        }
    }
    return result;
} 
开发者ID:SOCR,项目名称:HTML5_WebSite,代码行数:25,代码来源:TaskSeriesCollection.java

示例9: getEndValue

import org.jfree.data.time.TimePeriod; //导入依赖的package包/类
/**
 * Returns the end value of a sub-interval for a given item.
 *
 * @param rowKey  the row key.
 * @param columnKey  the column key.
 * @param subinterval  the subinterval.
 *
 * @return The end value (possibly <code>null</code>).
 */
public Number getEndValue(Comparable rowKey, Comparable columnKey,
                          int subinterval) {
    Number result = null;
    int row = getRowIndex(rowKey);
    TaskSeries series = (TaskSeries) this.data.get(row);
    Task task = series.get(columnKey.toString());
    if (task != null) {
        Task sub = task.getSubtask(subinterval);
        if (sub != null) {
            TimePeriod duration = sub.getDuration();
            result = new Long(duration.getEnd().getTime());
        }
    }
    return result;
} 
开发者ID:SOCR,项目名称:HTML5_WebSite,代码行数:25,代码来源:TaskSeriesCollection.java

示例10: getStartValue

import org.jfree.data.time.TimePeriod; //导入依赖的package包/类
/**
 * Returns the start value for a task.
 *
 * @param rowKey  the series.
 * @param columnKey  the category.
 *
 * @return The start value.
 */
public Number getStartValue(Comparable rowKey, Comparable columnKey) {
    Number result = null;
    int row = getRowIndex(rowKey);
    TaskSeries series = (TaskSeries) this.data.get(row);
    Task task = series.get(columnKey.toString());
    if (task != null) {
        TimePeriod duration = task.getDuration();
        result = new Long(duration.getStart().getTime());
    }
    return result;
} 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:20,代码来源:TaskSeriesCollection.java

示例11: getEndValue

import org.jfree.data.time.TimePeriod; //导入依赖的package包/类
/**
 * Returns the end value for a task.
 *
 * @param rowKey  the series.
 * @param columnKey  the category.
 *
 * @return The end value.
 */
public Number getEndValue(Comparable rowKey, Comparable columnKey) {
    Number result = null;
    int row = getRowIndex(rowKey);
    TaskSeries series = (TaskSeries) this.data.get(row);
    Task task = series.get(columnKey.toString());
    if (task != null) {
        TimePeriod duration = task.getDuration();
        result = new Long(duration.getEnd().getTime());
    }
    return result;
} 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:20,代码来源:TaskSeriesCollection.java

示例12: Task

import org.jfree.data.time.TimePeriod; //导入依赖的package包/类
/**
 * Creates a new task.
 *
 * @param description  the task description (<code>null</code> not permitted).
 * @param duration  the task duration (<code>null</code> permitted).
 */
public Task(String description, TimePeriod duration) {
    if (description == null) {
        throw new IllegalArgumentException("Null 'description' argument.");
    }
    this.description = description;
    this.duration = duration;
    this.percentComplete = null;
    this.subtasks = new java.util.ArrayList();
} 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:16,代码来源:Task.java

本文标签属性:

示例:示例的拼音

代码:代码大全可复制

java:javascript18岁

TimePeriod:TimePeriod

上一篇:Python CDLL.freeifaddrs方法代码示例
下一篇:萤火[yíng huǒ]什么意思?近义词和反义词是什么?英文翻译是什么...(萤火的词语萤火的词语是什么)

为您推荐