package org.eclipse.nebula.widgets.nattable.core.layer.axis.segment | |
/** | |
* A set of useful utility functions that calculate invariants that must hold for any axis segment. | |
*/ | |
class SegmentInvariants { | |
def static getPixelSize(Segment segment) { | |
val axis = segment.axis | |
val segmentPosition = segment.position | |
axis.getStartPixelOfSegmentPosition(segmentPosition + 1) - axis.getStartPixelOfSegmentPosition(segmentPosition) | |
} | |
} |