Java 如何在1中组合2个分段时间线?

Java 如何在1中组合2个分段时间线?,java,jfreechart,timeline,Java,Jfreechart,Timeline,如文件所述: " " 此方法的代码如下所示: “timeline.setBaseTimeline(newmondaythrifridaytimeline());” 如果您只搜索分段时间线基线时间线的位置 您将看到,在其他3种方法中使用: public void addBaseTimelineException(long domainValue)-它向baseTimeline添加了一些异常 public void addBaseTimelineExclutions(长自BaseDomainValu

如文件所述:

"

"

此方法的代码如下所示: “
timeline.setBaseTimeline(newmondaythrifridaytimeline());

如果您只搜索
分段时间线基线时间线的位置

您将看到,在其他3种方法中使用:

public void addBaseTimelineException(long domainValue)
-它向baseTimeline添加了一些异常

public void addBaseTimelineExclutions(长自BaseDomainValue,
long toBaseDomainValue)
-此处相同,且

public SegmentedTimeline getBaseTimeline()

请注意,此getter不在其他任何地方使用

所以我的问题是,允许将周末作为例外添加到segmentedTimeline的实现在哪里,segmentedTimeline在baseTimeline之上? 摘要:向任何时间线添加baseTimeline不会产生任何效果


如何修改该类(SegmentedTimeLine)以创建一个时间线,这类似于日内-但周一到周五,每天从上午9点到晚上7点?

这是SegmentedTimeLine的一个实现问题,它仍然没有固定,而且(更糟的)可能不会很快得到固定。他可能会取消这个特性,或者在未来的JFreeChart版本中实现一个新特性


作为建议,基于CategoryAxis的图表可以帮助您显示数据集,而不必担心排除长时间(非交易时间段),尽管您可能需要覆盖一些方法来自定义域轴的显示。请参见

我知道,我可以在我的I.e.segmentedtimeline=新的segmentedtimeline(小时段大小,8,16)中添加一个例外列表,该列表从周一上午9:00开始,但如果我们有3年的数据,性能会下降。“但是如果我们有3年的数据,性能会下降。”-对不起,我的坏,我的渲染器。”(CandlesticKrender)设置为“setAutoWidthMethod(CandlesticKrender.WIDTHMETHOD_minimate)”,这会降低性能:/
/**
     * Factory method to create a 15-min, 9:00 AM thought 4:00 PM, Monday
     * through Friday SegmentedTimeline.
     * <P>
     * This timeline uses a segmentSize of FIFTEEN_MIN_SEGMENT_SIZE. The
     * segment group is defined as 28 included segments (9:00 AM through
     * 4:00 PM) and 68 excluded segments (4:00 PM through 9:00 AM the next day).
     * <P>
     * In order to exclude Saturdays and Sundays it uses a baseTimeline that
     * only includes Monday through Friday days.
     * <P>
     * The <code>startTime</code> of the resulting timeline will be 9:00 AM
     * after the startTime of the baseTimeline. This will correspond to 9:00 AM
     * of the first Monday after 1/1/1900.
     *
     * @return A fully initialized SegmentedTimeline.
     */
     public static SegmentedTimeline newFifteenMinuteTimeline()