|
|
@ -112,14 +112,18 @@ public abstract class AbstractGridHeaderMouseHandler extends MouseInputAdapter { |
|
|
|
if (between(evt, tmpSize1, tmpSize2)) { |
|
|
|
if (between(evt, tmpSize1, tmpSize2)) { |
|
|
|
if (index >= dragIndex) { |
|
|
|
if (index >= dragIndex) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
|
|
|
|
if(method != null) { |
|
|
|
method.invoke(report, dragIndex, FU.valueOfPix(evtOffset(evt, oldEndValueSize), resolution)); |
|
|
|
method.invoke(report, dragIndex, FU.valueOfPix(evtOffset(evt, oldEndValueSize), resolution)); |
|
|
|
|
|
|
|
} |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
} |
|
|
|
} |
|
|
|
//sizeList.set(dragIndex, FU.valueOfPix(evtOffset(evt, oldEndValueSize), resolution));
|
|
|
|
//sizeList.set(dragIndex, FU.valueOfPix(evtOffset(evt, oldEndValueSize), resolution));
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
try { |
|
|
|
try { |
|
|
|
|
|
|
|
if(method != null) { |
|
|
|
method.invoke(report, index, FU.valueOfPix(evtOffset(evt, (int) tmpSize1), resolution)); |
|
|
|
method.invoke(report, index, FU.valueOfPix(evtOffset(evt, (int) tmpSize1), resolution)); |
|
|
|
|
|
|
|
} |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
} |
|
|
|
} |
|
|
@ -127,7 +131,9 @@ public abstract class AbstractGridHeaderMouseHandler extends MouseInputAdapter { |
|
|
|
// from all to do.
|
|
|
|
// from all to do.
|
|
|
|
for (int h = (dragIndex - 1); h > index; h--) { |
|
|
|
for (int h = (dragIndex - 1); h > index; h--) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
|
|
|
|
if(method != null) { |
|
|
|
method.invoke(report, h, UNIT.ZERO); |
|
|
|
method.invoke(report, h, UNIT.ZERO); |
|
|
|
|
|
|
|
} |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
} |
|
|
|
} |
|
|
|