Sets the 'justification' instance variable (LEFT, CENTER or RIGHT)
(int justification)
| 414 | |
| 415 | /** Sets the 'justification' instance variable (LEFT, CENTER or RIGHT) */ |
| 416 | public void setJustification(int justification) { |
| 417 | if (justification<0 || justification>RIGHT) |
| 418 | justification = LEFT; |
| 419 | this.justification = justification; |
| 420 | updateBounds(); |
| 421 | if (imp!=null) |
| 422 | imp.draw(); |
| 423 | } |
| 424 | |
| 425 | /** Returns the value of the 'justification' instance variable (LEFT, CENTER or RIGHT). */ |
| 426 | public int getJustification() { |
no test coverage detected