Project Wonder 5.0

er.chronic.repeaters
Class RepeaterDayPortion<T>

java.lang.Object
  extended by er.chronic.tags.Tag<T>
      extended by er.chronic.repeaters.Repeater<T>
          extended by er.chronic.repeaters.RepeaterDayPortion<T>
All Implemented Interfaces:
java.lang.Comparable<Repeater<?>>
Direct Known Subclasses:
EnumRepeaterDayPortion, IntegerRepeaterDayPortion

public abstract class RepeaterDayPortion<T>
extends Repeater<T>


Nested Class Summary
static class RepeaterDayPortion.DayPortion
           
 
Constructor Summary
RepeaterDayPortion(T type)
           
 
Method Summary
protected abstract  int _getWidth(Range range)
           
protected  Span _nextSpan(Pointer.PointerType pointer)
           
protected  Span _thisSpan(Pointer.PointerType pointer)
           
protected abstract  Range createRange(T type)
           
 Span getOffset(Span span, float amount, Pointer.PointerType pointer)
           
 int getWidth()
          returns the width (in seconds or months) of this repeatable.
static EnumRepeaterDayPortion scan(Token token)
           
 java.lang.String toString()
           
 
Methods inherited from class er.chronic.repeaters.Repeater
compareTo, nextSpan, scan, scan, thisSpan
 
Methods inherited from class er.chronic.tags.Tag
getNow, getType, setStart, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RepeaterDayPortion

public RepeaterDayPortion(T type)
Method Detail

_nextSpan

protected Span _nextSpan(Pointer.PointerType pointer)
Specified by:
_nextSpan in class Repeater<T>

_thisSpan

protected Span _thisSpan(Pointer.PointerType pointer)
Specified by:
_thisSpan in class Repeater<T>

getOffset

public Span getOffset(Span span,
                      float amount,
                      Pointer.PointerType pointer)
Specified by:
getOffset in class Repeater<T>

getWidth

public int getWidth()
Description copied from class: Repeater
returns the width (in seconds or months) of this repeatable.

Specified by:
getWidth in class Repeater<T>

_getWidth

protected abstract int _getWidth(Range range)

createRange

protected abstract Range createRange(T type)

toString

public java.lang.String toString()
Overrides:
toString in class Repeater<T>

scan

public static EnumRepeaterDayPortion scan(Token token)

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.