*/
public class BoneInfo implements SerialNumbered {
+ private static final String NO_BONE = "NONE";
+
private final I18nText boneName = new I18nText();
private BoneType boneType;
private int rotationRatio;
- private int serialNo = -1;
+ private int boneSerialNo = -1;
+
/**
* コンストラクタ。
return;
}
+
/**
* ボーン名を返す。
* @return ボーン名
*/
@Override
public void setSerialNumber(int num){
- this.serialNo = num;
+ this.boneSerialNo = num;
return;
}
*/
@Override
public int getSerialNumber(){
- return this.serialNo;
+ return this.boneSerialNo;
}
/**
StringBuilder result = new StringBuilder();
result.append("Bone")
- .append(this.serialNo)
+ .append(this.boneSerialNo)
.append("(")
.append(this.boneName.getPrimaryText())
.append(")");
result.append(" prev=");
if(this.prevBone != null) result.append(this.prevBone.getBoneName());
- else result.append("NONE");
+ else result.append(NO_BONE);
result.append(" next=");
if(this.nextBone != null) result.append(this.nextBone.getBoneName());
- else result.append("NONE");
+ else result.append(NO_BONE);
if(this.boneType == BoneType.LINKEDROT){
result.append(" rotraio=").append(this.rotationRatio);
if(this.srcBone != null){
result.append(this.srcBone.getBoneName());
}else{
- result.append("NONE");
+ result.append(NO_BONE);
}
}