public BooleanProperty isPolylineProperty ( ) { if ( this . isPolyline == null ) { this . isPolyline = new ReadOnlyBooleanWrapper ( this , MathFXAttributeNames . IS_POLYLINE , false ) ; this . isPolyline . bind ( Bindings . createBooleanBinding ( ( ) -> { boolean first = true ; boolean hasOneLine = false ; for ( final PathElementType type : innerTypesProperty ( ) ) { if ( first ) { if ( type != PathElementType . MOVE_TO ) { return false ; } first = false ; } else if ( type != PathElementType . LINE_TO ) { return false ; } else { hasOneLine = true ; } } return hasOneLine ; } , innerTypesProperty ( ) ) ) ; } return this . isPolyline ; }
Replies the isPolyline property .