def METHOD_NAME(self, context, layout):
    layout.prop(self, "fill_mode", expand=False)
    col = layout.column(align=True)
    col.prop(self, "stroke_mode", expand=False)
    if self.stroke_mode != 'NONE':
        col.prop(self, "stroke_linecap", expand=False)
        col.prop(self, "stroke_linejoin", expand=False)
        col.prop(self, "stroke_type", expand=False)
        if self.fill_mode != 'NONE':
            layout.prop(self, "paint_order", expand=False)