public String myGetState() { final SequenceEncoder se = new SequenceEncoder(';'); se.append(globalVisibility).append(startMapId).append(pointList.size()); for (Point p : pointList) { se.append(p.x + "," + p.y); } return se.getValue(); }
public String encode(Command c) { String s = null; if (c instanceof SetPrivateTextCommand) { PrivateText t = ((SetPrivateTextCommand) c).getPrivateText(); SequenceEncoder se = new SequenceEncoder('\t'); s = COMMAND_PREFIX + se.append(t.getOwner()) .append(TextConfigurer.escapeNewlines(t.getText())) .getValue(); } return s; }
public String myGetType() { SequenceEncoder se = new SequenceEncoder(';'); se.append(trailKey) .append(menuCommand) .append(initiallyVisible) .append(globallyVisible) .append(circleRadius) .append(fillColor) .append(lineColor) .append(selectedTransparency) .append(unSelectedTransparency) .append(edgePointBuffer) .append(edgeDisplayBuffer) .append(lineWidth); return ID + se.getValue(); }
public String getType() { final SequenceEncoder se = new SequenceEncoder(';'); se.append(ID) .append((KeyStroke) trailKeyInput.getValue()) .append(mc.getValueString()) .append(iv.getValueString()) .append(gv.getValueString()) .append(cr.getValueString()) .append(fc.getValueString()) .append(lc.getValueString()) .append(st.getValueString()) .append(ut.getValueString()) .append(pb.getValueString()) .append(db.getValueString()) .append(lw.getValueString()); return se.getValue(); }
public String encode() { SequenceEncoder se1 = new SequenceEncoder(TYPE, ';'); se1.append(width); se1.append(height); se1.append(shape); se1.append(bevel); SequenceEncoder se2 = new SequenceEncoder(se1.getValue(), '|'); se2.append(super.encode()); return se2.getValue(); }