@Override public void setValueIsAdjusting(boolean isAdjusting) { super.setValueIsAdjusting(isAdjusting); if (!isAdjusting) { // Enable toggling gestureStarted = false; } } }
public void setValueIsAdjusting(boolean isAdjusting) { logger.info("setValueIsAdjusting"); super.setValueIsAdjusting(isAdjusting); }
@Override public void setValueIsAdjusting(boolean valueIsAdjusting) { super.setValueIsAdjusting(valueIsAdjusting); delegate.setValueIsAdjusting(valueIsAdjusting); }
boolean old = isSelectedIndex(index); boolean adjusting = getValueIsAdjusting(); super.setValueIsAdjusting(true); try { if (old) { super.setValueIsAdjusting(adjusting);
/** * Renvoie la liste de points de <code>_p </code> contenus dans le polygone <code>_polyRef</code>. * * @return null si aucun point n'appartient a <code>_polyRef</code>. */ public static final DefaultListSelectionModel pointsSelectionnes(final GrPolygone _poly, final GrPolygone _polyolyRef) { final GrBoite polyRefBoite = _polyolyRef.boite(); if (!polyRefBoite.intersectXY(_poly.boite())) { return null; } final int nb = _poly.nombre() - 1; GrPoint p; final DefaultListSelectionModel r = new DefaultListSelectionModel(); r.setValueIsAdjusting(true); for (int i = nb; i >= 0; i--) { p = _poly.sommet(i); if (p == null) { continue; } if (polyRefBoite.contientXY(p) && _polyolyRef.contientXY(p)) { r.addSelectionInterval(i, i); } } r.setValueIsAdjusting(false); return r.isSelectionEmpty() ? null : r; }
/** * Renvoie la liste de points de <code>_p </code> contenus dans le polygone <code>_polyRef</code>. * * @return null si aucun point n'appartient a <code>_polyRef</code>. */ public static final DefaultListSelectionModel pointsSelectionnes(final GrPolyligne _poly, final GrPolygone _polyRef) { final GrBoite polyRefBoite = _polyRef.boite(); if (!polyRefBoite.intersectXY(_poly.boite())) { return null; } final int nb = _poly.nombre() - 1; GrPoint p; final DefaultListSelectionModel r = new DefaultListSelectionModel(); r.setValueIsAdjusting(true); for (int i = nb; i >= 0; i--) { p = _poly.sommet(i); if (p == null) { continue; } if (polyRefBoite.contientXY(p) && _polyRef.contientXY(p)) { r.addSelectionInterval(i, i); } } r.setValueIsAdjusting(false); return r.isSelectionEmpty() ? null : r; } }