de.jaret.util.ui.timebars.model
Interface IIntervalRelation

All Known Implementing Classes:
IntervalRelation

public interface IIntervalRelation

Relation between intervals.

Version:
$Id: IIntervalRelation.java 800 2008-12-27 22:27:33Z kliem $
Author:
kliem

Nested Class Summary
static class IIntervalRelation.Direction
          Direction of the relation.
static class IIntervalRelation.Type
          Relation type denoting if the relation should refer to the end or begin of the interval.
 
Field Summary
static java.lang.String DIRECTION
          propertyname constant for the direction property.
static java.lang.String ENDINTERVAL
          propertyname constant for the end interval property.
static java.lang.String STARTINTERVAL
          propertyname constant for the start interval property.
static java.lang.String TYPE
          propertyname constant for the type property.
 
Method Summary
 IIntervalRelation.Direction getDirection()
          Retrieve the direction of the relation.
 IRelationalInterval getEndInterval()
          Retrieve the end interval.
 IRelationalInterval getStartInterval()
          Retrieve the start interval.
 IIntervalRelation.Type getType()
          Retrieve the type of the relation.
 void setDirection(IIntervalRelation.Direction direction)
          Set the direction of the realtion.
 void setEndInterval(IRelationalInterval interval)
          Set the end interval.
 void setStartInterval(IRelationalInterval interval)
          Set the start interval.
 void setType(IIntervalRelation.Type type)
          Set the type of the relation.
 

Field Detail

DIRECTION

static final java.lang.String DIRECTION
propertyname constant for the direction property.

See Also:
Constant Field Values

TYPE

static final java.lang.String TYPE
propertyname constant for the type property.

See Also:
Constant Field Values

STARTINTERVAL

static final java.lang.String STARTINTERVAL
propertyname constant for the start interval property.

See Also:
Constant Field Values

ENDINTERVAL

static final java.lang.String ENDINTERVAL
propertyname constant for the end interval property.

See Also:
Constant Field Values
Method Detail

getStartInterval

IRelationalInterval getStartInterval()
Retrieve the start interval.

Returns:
the start interval

setStartInterval

void setStartInterval(IRelationalInterval interval)
Set the start interval.

Parameters:
interval - the start interval

getEndInterval

IRelationalInterval getEndInterval()
Retrieve the end interval.

Returns:
the end interval

setEndInterval

void setEndInterval(IRelationalInterval interval)
Set the end interval.

Parameters:
interval - the end interval

getDirection

IIntervalRelation.Direction getDirection()
Retrieve the direction of the relation.

Returns:
the direction

setDirection

void setDirection(IIntervalRelation.Direction direction)
Set the direction of the realtion.

Parameters:
direction - direction

getType

IIntervalRelation.Type getType()
Retrieve the type of the relation.

Returns:
the type

setType

void setType(IIntervalRelation.Type type)
Set the type of the relation.

Parameters:
type - the type to use


Copyright © 2012. All Rights Reserved.