public void setArcType ( int type ) { if ( type != OPEN && type != CHORD && type != PIE ) { throw new IllegalArgumentException ( "Invalid Arc type: " + type ) ; } this . type = type ; }
Sets the type of this arc to the specified value .