/** * Add in any special control widgets to the current list of widgets. * * @param controlWidgets list of control widgets * @throws VisADException VisAD error * @throws RemoteException RMI error */ public void getControlWidgets(List controlWidgets) throws VisADException, RemoteException { super.getControlWidgets(controlWidgets); if (!usePoints) { JCheckBox textureToggle = GuiUtils.makeCheckbox("", this, "useTexture3D"); controlWidgets.add( new WrapperWidget( this, GuiUtils.rLabel("Use 3D Texture:"), GuiUtils.leftCenter(textureToggle, GuiUtils.filler()))); } else { controlWidgets.add( new WrapperWidget( this, GuiUtils.rLabel("Point Size:"), GuiUtils.left(doMakePointSizeWidget()))); } }