this.direction = direction;
setText(name);
if (direction == PositionConstants.EAST) {
setTextPlacement(PositionConstants.SOUTH);
setIcon(CommonImages.getImage(ConfigGraphCommonImages.SEQUENCE_BEGIN_HORIZONTAL));
setBorder(new MarginBorder(0, 2, 2, 9));
}
else {
setIcon(CommonImages.getImage(ConfigGraphCommonImages.SEQUENCE_BEGIN_VERTICAL));
setBorder(new MarginBorder(2, 0, 2, 9));
}
}