protected void doStart(float x, float y) { _lstart = layer.transform().translation(); _pstart = new Vector(x, y); } protected void doMove(float x, float y) {
@Override public String toString () { if (m00 != 1 || m01 != 0 || m10 != 0 || m11 != 1) return "affine [" + MathUtil.toString(m00) + " " + MathUtil.toString(m01) + " " + MathUtil.toString(m10) + " " + MathUtil.toString(m11) + " " + translation() + "]"; else if (tx != 0 || ty != 0) return "trans " + translation(); else return "ident"; }
@Override public String toString () { if (m00 != 1 || m01 != 0 || m10 != 0 || m11 != 1) return "affine [" + MathUtil.toString(m00) + " " + MathUtil.toString(m01) + " " + MathUtil.toString(m10) + " " + MathUtil.toString(m11) + " " + translation() + "]"; else if (tx != 0 || ty != 0) return "trans " + translation(); else return "ident"; }
@Override public void onStart(Pointer.Interaction iact) { Pointer.Event event = iact.event; _lstart = label.transform().translation(); _pstart = new Vector(event.x(), event.y()); label.setAlpha(0.5f); modify(event); logger.log(describe(event, "pointer start")); } @Override public void onDrag(Pointer.Interaction iact) {
@Override public void onStart(Touch.Interaction iact) { Touch.Event event = iact.event; _lstart = label.transform().translation(); _pstart = new Vector(event.x(), event.y()); label.setAlpha(0.5f); modify(event); logger.log(describe(event, "touch start")); } @Override public void onMove(Touch.Interaction iact) {
@Override public void onButton(Mouse.ButtonEvent event, Mouse.Interaction iact) { if (event.down) { _lstart = label.transform().translation(); _pstart = new Vector(event.x(), event.y()); label.setAlpha(0.5f); modify(event); logger.log(describe(event, "mouse down")); } else { label.setAlpha(1.0f); modify(event); logger.log(describe(event, "mouse up")); } }