*
* @param right
*/
public void setRightBound(double right) {
if (!dragging && !boundDragging) {
DomainRegionSelectionBound selectionRight = selectionBoundaries.getRightSelectionBound();
double domainWidth = overViewTimeLineModel.getRightBound()
- overViewTimeLineModel.getLeftBound();
double pixelDelta = ((double) overViewTimeLine.getCurrentGraphWidth())
/ (domainWidth == 0 ? 1 : domainWidth);
selectionRight.setDomainValue(right,
(int) ((right - overViewTimeLineModel.getLeftBound()) * pixelDelta),
overViewTimeLine.getCurrentGraphWidth());
rightMask.getStyle().setPropertyPx(
"width",
overViewTimeLine.getCurrentGraphWidth()