private static String createSetupName(final BasicViewSetup setup) { if (setup.hasName()) return setup.getName(); String name = ""; final Angle angle = setup.getAttribute(Angle.class); if (angle != null) name += (name.isEmpty() ? "" : " ") + "a " + angle.getName(); final Channel channel = setup.getAttribute(Channel.class); if (channel != null) name += (name.isEmpty() ? "" : " ") + "c " + channel.getName(); return name; }
/** * Add an Angle to the data set. * * <p>This is only needed when creating a new data set definition to be serialized to XML. * * @param angle the Angle */ public void addAngle(final Angle angle) { angles.put(angle.getId(), angle); }