public VObject(AnnotationLayer aLayer, VID aVid, String aType, int aEquivalenceSet, Map<String, String> aFeatures, Map<String, String> aHoverFeatures) { layer = aLayer; vid = aVid; type = aType; features = aFeatures; setHoverFeatures(aHoverFeatures); equivalenceSet = aEquivalenceSet; }
private static String getColor(VObject aVObject, ColoringStrategy aColoringStrategy, String aLabelText) { String color; if (aVObject.getEquivalenceSet() >= 0) { // Every chain is supposed to have a different color color = ColoringStrategy.PALETTE_NORMAL_FILTERED[aVObject.getEquivalenceSet() % ColoringStrategy.PALETTE_NORMAL_FILTERED.length]; } else { color = aColoringStrategy.getColor(aVObject.getVid(), aLabelText); } return color; }
private static String getColor(VObject aVObject, ColoringStrategy aColoringStrategy, String aLabelText) { String color; if (aVObject.getEquivalenceSet() >= 0) { // Every chain is supposed to have a different color color = ColoringStrategy.PALETTE_NORMAL_FILTERED[aVObject.getEquivalenceSet() % ColoringStrategy.PALETTE_NORMAL_FILTERED.length]; } else { color = aColoringStrategy.getColor(aVObject.getVid(), aLabelText); } return color; }
private static String getColor(VObject aVObject, ColoringStrategy aColoringStrategy, String aLabelText) { String color; if (aVObject.getEquivalenceSet() >= 0) { // Every chain is supposed to have a different color color = ColoringStrategy.PALETTE_NORMAL_FILTERED[aVObject.getEquivalenceSet() % ColoringStrategy.PALETTE_NORMAL_FILTERED.length]; } else { color = aColoringStrategy.getColor(aVObject.getVid(), aLabelText); } return color; } }
public VObject(AnnotationLayer aLayer, VID aVid, String aType, int aEquivalenceSet, Map<String, String> aFeatures, Map<String, String> aHoverFeatures) { layer = aLayer; vid = aVid; type = aType; features = aFeatures; setHoverFeatures(aHoverFeatures); equivalenceSet = aEquivalenceSet; }
private static String getColor(VObject aVObject, ColoringStrategy aColoringStrategy, String aLabelText) { String color; if (aVObject.getEquivalenceSet() >= 0) { // Every chain is supposed to have a different color color = ColoringStrategy.PALETTE_NORMAL_FILTERED[aVObject.getEquivalenceSet() % ColoringStrategy.PALETTE_NORMAL_FILTERED.length]; } else { color = aColoringStrategy.getColor(aVObject.getVid(), aLabelText); } return color; }