/** * Constructor. Creates an instance of a viewport. * * @param wide * @param high */ public Viewport(int wide, int high) { super(NodeType.VIEWPORT); m_wide = wide; m_high = high; add(m_back); add(m_main); add(m_drag); m_drag.add(new DragLayer()); m_mediators = new Mediators(this); // Zoom mediators rely on the Transform not being null. setTransform(new Transform()); }