public void setMolecularStyle(byte style) {
		molecularStyle = style;
		switch (molecularStyle) {
		case SPACE_FILLING:
			setCpkPercent(100);
			viewer.setMarBond((short) 1000);
			break;
		case BALL_AND_STICK:
			setCpkPercent(25);
			viewer.setMarBond((short) 400);
			break;
		case STICKS:
			setCpkPercent(10);
			viewer.setMarBond((short) 400);
			break;
		case WIREFRAME:
			setCpkPercent(5);
			viewer.setMarBond((short) 1);
			break;
		}
		repaint();
	}