blob: 5d0b0d70669b018923e6cfb1fe99d282a18547d6 [file] [log] [blame]
package org.eclipse.nebula.widgets.nattable.core.layer.axis.segment
import org.eclipse.nebula.widgets.nattable.core.layer.axis.Axis
/**
* Represents a particular segment of an Axis (e.g. a column or row).
*/
interface Segment {
/**
* @return The Axis that this segment belongs to.
*/
def Axis getAxis()
/**
* @return The position of this segment in its axis.
*/
def int getPosition()
/**
* @return The number of positions that this segment spans (normally 1).
*/
def int getSpan()
/**
* @return The data value associated with this segment.
*/
def Object getDataValue()
/**
* Sets a new value for the data associated with this segment.
*/
def void setDataValue(Object newValue)
}