public ImageSettings() { // Single Image Settings slice.add(new JLabel("Single Image Settings:")); newSlice(); ButtonGroup group = new ButtonGroup(); singleCylindrical = new JRadioButton("Cylindrical projection"); singleCylindrical.setSelected(true); group.add(singleCylindrical); slice.add(singleCylindrical); newSlice(); singleEllipse = new JRadioButton("Elliptical projection"); singleEllipse.setSelected(false); group.add(singleEllipse); slice.add(singleEllipse); newSlice(); singleSizeLabel = new JLabel("Image height=" + singleSize); slice.add(singleSizeLabel); singleSizeUp = new JButton("Up"); singleSizeDown = new JButton("Down"); singleSizeUp.addActionListener(this); singleSizeDown.addActionListener(this); slice.add(singleSizeUp); slice.add(singleSizeDown); newSlice(); singleSquare = new JRadioButton("Square the image"); singleSquare.setSelected(true); slice.add(singleSquare); newSlice(); singleFaults = new JRadioButton("Show faultlines"); singleFaults.setSelected(true); slice.add(singleFaults); newSlice(); singleAgeDots = new JRadioButton("Show age dots"); singleAgeDots.setSelected(true); slice.add(singleAgeDots); newSlice(); // Sequence Image Settings slice.add(new JLabel("Sequence Image Settings:")); newSlice(); ButtonGroup group2 = new ButtonGroup(); seqCylindrical = new JRadioButton("Cylindrical projection"); seqCylindrical.setSelected(true); group2.add(seqCylindrical); slice.add(seqCylindrical); newSlice(); seqEllipse = new JRadioButton("Elliptical projection"); seqEllipse.setSelected(false); group2.add(seqEllipse); slice.add(seqEllipse); newSlice(); seqSizeLabel = new JLabel("Image height=" + seqSize); slice.add(seqSizeLabel); seqSizeUp = new JButton("Up"); seqSizeDown = new JButton("Down"); seqSizeUp.addActionListener(this); seqSizeDown.addActionListener(this); slice.add(seqSizeUp); slice.add(seqSizeDown); newSlice(); seqSquare = new JRadioButton("Square the images"); seqSquare.setSelected(false); slice.add(seqSquare); newSlice(); seqFaults = new JRadioButton("Show faultlines"); seqFaults.setSelected(true); slice.add(seqFaults); newSlice(); seqAgeDots = new JRadioButton("Show age dots"); seqAgeDots.setSelected(true); slice.add(seqAgeDots); // newSlice(); }
public boolean seqEllipse() { return seqEllipse.isSelected(); }
public boolean seqAgeDots() { return seqAgeDots.isSelected(); }
public boolean seqFaults() { return seqFaults.isSelected(); }
public boolean seqCylindrical() { return seqCylindrical.isSelected(); }
public boolean seqSquare() { return seqSquare.isSelected(); }
public boolean singleAgeDots() { return singleAgeDots.isSelected(); }
public boolean singleEllipse() { return singleEllipse.isSelected(); }
public boolean singleFaults() { return singleFaults.isSelected(); }
public boolean singleSquare() { return singleSquare.isSelected(); }