Class UndecoratedCardBack


  • public class UndecoratedCardBack
    extends Sheet<GameComponent>
    A component face that simply draws the template image. This is useful for plain card backs that never change.
    Author:
    Chris Jennings
    • Constructor Detail

      • UndecoratedCardBack

        public UndecoratedCardBack​(GameComponent component,
                                   java.lang.String templateKey)
      • UndecoratedCardBack

        public UndecoratedCardBack​(GameComponent component,
                                   java.lang.String templateKey,
                                   double bleedMargin)
      • UndecoratedCardBack

        public UndecoratedCardBack​(GameComponent component,
                                   java.lang.String templateKey,
                                   double bleedMargin,
                                   double cornerRadius)
    • Method Detail

      • getBleedMargin

        public double getBleedMargin()
        Description copied from class: Sheet
        Returns the size of the bleed margin around the component edge that should be cropped off, measured in points. This bleed margin allows for slight misalignment when cutting the component from a larger sheet of paper. The bleed margin will be the same on all sides. The height and width of the component after cutting will be less than the original by twice this margin. If Sheet.hasCropMarks() returns true, then the automatic crop marks will be moved toward the inside of this component by an amount equal to the bleed margin.

        The base class looks up the setting templateKey-bleed-margin to determine the bleed margin, defaulting to 0 if none is defined.

        In the example below, the actual component to be cut and kept is indicated by the blank area, while the X'd area indicates the bleed margin. Component content covers the entire area, including the bleed margin, but nothing important should appear in the bleed margin or within a distance about the same size as the bleed margin on the component interior.

         XXXXXXXXXXXXXXXXXX
         XX              XX
         X                X
         X                X
         X     Actual     X
         X    Component   X
         X     Content    X
         X       (tm)     X
         X                X
         X                X
         X                X
         XX              XX
         XXXXXXXXXXXXXXXXXX
         

        By default, this method returns 0, meaning that the design includes no bleed margin. If the bleed margin is 0, Strange Eons will attempt to synthesize bleed margin graphics, with varying results. Note that Strange Eons will not synthesize a bleed margin for transparent sheet images (i.e., if Sheet.isTransparent() is true).

        Overrides:
        getBleedMargin in class Sheet<GameComponent>
        Returns:
        the size of the bleed margin, in points (1 point = 1/72 inch)
        See Also:
        Sheet.hasCropMarks()