public void adjustBounds(double x, double y, double w, double h) { PBounds viewBounds = getCamera().getViewBounds(); getCamera().setBounds(x, y, w, h); pp.setBounds(x, y, w, h); visualFlowMap.updateFlowWeightAttrLabel(); if (!viewBounds.isEmpty()) { camera.setViewBounds(viewBounds); } }