/** * Returns true if the two have the same properties. Returns false otherwise * * @param pString The MultiLineString to check against * @return true or false if the values are equal */ public boolean equalProperties(MultiLineString pString) { if (!aText.equals(pString.getText())) { return false; } if (aJustification.ordinal() != pString.getJustification()) { return false; } if (aBold != pString.aBold) { return false; } if (aUnderlined != pString.isUnderlined()) { return false; } return true; }
/** * Gets the value of the justification property. * * @return the justification, one of LEFT, CENTER, RIGHT */ public int getJustification() { return aJustification.ordinal(); }