public abstract class StructureViewerBase extends GStructureViewer
implements Runnable, ViewSetProvider
{
- /*
- * names for colour options (additional to Jalview colour schemes)
- */
- enum ViewerColour
- {
- BySequence, ByChain, ChargeCysteine, ByViewer
- }
-
/**
* list of sequenceSet ids associated with the view
*/
seqColour = new JRadioButtonMenuItem();
seqColour.setText(MessageManager.getString("action.by_sequence"));
- seqColour.setName(ViewerColour.BySequence.name());
seqColour.setSelected(binding.isColourBySequence());
seqColour.addActionListener(new ActionListener()
{
chainColour = new JRadioButtonMenuItem();
chainColour.setText(MessageManager.getString("action.by_chain"));
- chainColour.setName(ViewerColour.ByChain.name());
chainColour.addActionListener(new ActionListener()
{
@Override
chargeColour = new JRadioButtonMenuItem();
chargeColour.setText(MessageManager.getString("label.charge_cysteine"));
- chargeColour.setName(ViewerColour.ChargeCysteine.name());
chargeColour.addActionListener(new ActionListener()
{
@Override
viewerColour = new JRadioButtonMenuItem();
// text is set in overrides of this method
- viewerColour.setName(ViewerColour.ByViewer.name());
viewerColour.setSelected(!binding.isColourBySequence());
if (_colourwith == null)