| package org.eclipse.nebula.widgets.nattable.core.axis |
| |
| import java.io.Serializable |
| import org.eclipse.nebula.widgets.nattable.core.axis.segment.AxisSegment |
| |
| /** |
| * Represents a linear dimension (e.g. horizontal columns or vertical rows) |
| */ |
| interface Axis { |
| |
| /** |
| * @return The number of segments on this axis. |
| */ |
| def int getSegmentCount() |
| |
| /** |
| * @param axisPosition |
| * @return The start pixel location of the given segment position. |
| */ |
| def int getStartPixelOfSegmentPosition(int segmentPosition) |
| |
| /** |
| * @param pixelLocation |
| * @return The position of the segment that contains the given pixel location. |
| */ |
| def int getSegmentPositionByPixelLocation(int pixelLocation) |
| |
| /** |
| * @param segmentPosition |
| * @return The identifier corresponding to the given segment position. |
| */ |
| def Serializable getIdOfSegmentPosition(int segmentPosition) |
| |
| def AxisSegment getSegment(int segmentPosition) |
| |
| } |