}
protected LimitShape doAddLimitAction(boolean isVertical, boolean useSecondary, double position, String name){
Rectangle bounds = getBounds();
LimitShape cs = new LimitShape(isVertical, position);
insertLimit(cs,useSecondary);
setLimitLabel(cs, name);
setLimitColor(cs, defaultPalette[paletteIndex++]);
if (paletteIndex >= defaultPalette.length) paletteIndex = 0;
repaintDiagram(bounds);