예제 #1
0
class ITemplate(interfaces.IRMLDirectiveSignature):
    """Define a page template."""
    occurence.containing(occurence.OneOrMore('pageTemplate', IPageTemplate), )

    pagesize = attr.PageSize(title=u'Page Size',
                             description=u'The Page Size.',
                             required=False)

    rotation = attr.Integer(
        title=u'Rotation',
        description=u'The rotation of the page in multiples of 90 degrees.',
        required=False)

    leftMargin = attr.Measurement(
        title=u'Left Margin',
        description=u'The left margin of the template.',
        default=0,
        required=False)

    rightMargin = attr.Measurement(
        title=u'Right Margin',
        description=u'The right margin of the template.',
        default=0,
        required=False)

    topMargin = attr.Measurement(
        title=u'Top Margin',
        description=u'The top margin of the template.',
        default=0,
        required=False)

    bottomMargin = attr.Measurement(
        title=u'Bottom Margin',
        description=u'The bottom margin of the template.',
        default=0,
        required=False)

    showBoundary = attr.Boolean(
        title=u'Show Boundary',
        description=u'A flag to show the boundary of the template.',
        required=False)

    allowSplitting = attr.Boolean(
        title=u'Allow Splitting',
        description=u'A flag to allow splitting over multiple templates.',
        required=False)

    title = attr.Text(title=u'Title',
                      description=u'The title of the PDF document.',
                      required=False)

    author = attr.Text(title=u'Author',
                       description=u'The author of the PDF document.',
                       required=False)
예제 #2
0
class IPageTemplate(interfaces.IRMLDirectiveSignature):
    """Define a page template."""
    occurence.containing(
        occurence.OneOrMore('frame', IFrame),
        occurence.ZeroOrOne('pageGraphics', IPageGraphics),
    )

    id = attr.Text(title=u'Id',
                   description=u'The id of the template.',
                   required=True)

    pagesize = attr.PageSize(title=u'Page Size',
                             description=u'The Page Size.',
                             required=False)

    rotation = attr.Integer(
        title=u'Rotation',
        description=u'The rotation of the page in multiples of 90 degrees.',
        required=False)
예제 #3
0
class IPageTemplate(interfaces.IRMLDirectiveSignature):
    """Define a page template."""
    occurence.containing(
        occurence.OneOrMore('frame', IFrame),
        occurence.ZeroOrOne('pageGraphics', IPageGraphics),
    )

    id = attr.Text(title=u'Id',
                   description=u'The id of the template.',
                   required=True)

    pagesize = attr.PageSize(title=u'Page Size',
                             description=u'The Page Size.',
                             required=False)

    autoNextTemplate = attr.String(
        title=u'Auto Next Page Template',
        description=
        u'The page template to use automatically for the next page.',
        required=False)
예제 #4
0
class ISimpleLabels(interfaces.IRMLDirectiveSignature):
    """A set of simple labels for a chart."""
    occurence.containing(occurence.OneOrMore('label', ISimpleLabel), )
예제 #5
0
class ISlices3D(ISliceBase):
    """The collection of all 3-D slice descriptions."""
    occurence.containing(occurence.OneOrMore('slice', ISlice3D), )

    fillColorShaded = attr.Color(required=False)
예제 #6
0
class ISlices(ISliceBase):
    """The collection of all 2-D slice descriptions."""
    occurence.containing(occurence.OneOrMore('slice', ISlice), )
예제 #7
0
class ILines(ILineBase):
    """The set of all line descriptions in the line plot."""
    occurence.containing(occurence.OneOrMore('line', ILine), )
예제 #8
0
class ICategoryNames(interfaces.IRMLDirectiveSignature):
    """A list of category names."""
    occurence.containing(occurence.OneOrMore('name', IName), )
예제 #9
0
class IData2D(interfaces.IRMLDirectiveSignature):
    """A 2-D data set."""
    occurence.containing(occurence.OneOrMore('series', ISeries2D))
예제 #10
0
class ISpokeLabels(ISpokeLabelBase):
    """A set of spoke labels."""
    occurence.containing(occurence.OneOrMore('label', ISpokeLabel))
예제 #11
0
class ISpokes(ISpoke):
    """A collection of spokes."""
    occurence.containing(occurence.OneOrMore('spoke', ISpoke))
예제 #12
0
class IStrandLabels(IStrandLabelBase):
    """A set of strand labels."""
    occurence.containing(occurence.OneOrMore('label', IStrandLabel))
예제 #13
0
class IStrands(IStrand):
    """A collection of strands."""
    occurence.containing(occurence.OneOrMore('strand', IStrand))
예제 #14
0
class ITableRow(interfaces.IRMLDirectiveSignature):
    """A table row in the block table."""
    occurence.containing(occurence.OneOrMore('td', ITableCell), )