Class StyleConfig


  • public class StyleConfig
    extends Object
    • Field Detail

      • backgroundColor

        public Color backgroundColor
        QR Code background color. This refers to the color of the Light module of QR Data.
      • dataColorPrimary

        public Color dataColorPrimary
        Color to render the QR Code Data, or in other words Dark Modules.
      • dataColorSecondary

        public Color dataColorSecondary
        dataColorSecondary is being used only when dataColorMode is DATA_COLOR_MULTICOLOR.
      • dataColorMode

        public int dataColorMode
        Usually data modules will be rendered using one Color - dataColorPrimry. We can change rendering to use additional color wherein data modules will be rendered in alternative mode (odd-even formulat). User DATA_COLOR_MULTICOLOR for multi color mode.
      • DATA_COLOR_STANDARD

        public static final int DATA_COLOR_STANDARD
        Standard, single color data module rendering using dataColorPrimary.
        See Also:
        Constant Field Values
      • DATA_COLOR_MULTICOLOR

        public static final int DATA_COLOR_MULTICOLOR
        To render the Data Modules in alternative colors of dataColorPrimary and dataColorSecondary based on odd-even position.
        See Also:
        Constant Field Values
      • logoBackgroundColor

        public Color logoBackgroundColor
        In case the logo is added as overly of the QR Image, the Logo Background can be differenciated with different background to meet the branding needs.
      • finderColor

        public Color finderColor
        Logo background shape can be made optional by setting this to false. If it is set to true, then logoBackground shape will be rendered.
      • finderBallColor

        public Color finderBallColor
        finderBallColor can be used to modify th Finder Ball Color.
      • bDrawLogoBackground

        public boolean bDrawLogoBackground
        You can enable/disable the logo background frame. by default it is true.
      • FINDER_SQURE

        public static final int FINDER_SQURE
        Finder style to draw them in standard SQURE module.
        See Also:
        Constant Field Values
      • FINDER_ROUNDED_SQUARE

        public static final int FINDER_ROUNDED_SQUARE
        Finder style to draw them in SQURE module with rounded cornders.
        See Also:
        Constant Field Values
      • FINDER_CIRCLE

        public static final int FINDER_CIRCLE
        Finder style to draw them in Circle shape.
        See Also:
        Constant Field Values
      • FINDER_HEXAGON

        public static final int FINDER_HEXAGON
        Finder style to draw them in Hexagone shape.
        See Also:
        Constant Field Values
      • numberOfFaces

        public static int numberOfFaces
        No's of faces to be counted while drawing the custom hexagone shape.
      • FINDER_OPP_ROUND_CORNERS

        public static final int FINDER_OPP_ROUND_CORNERS
        Finder style to draw Squre wherein two opposite corners are Curved and Other two are Standard.
        See Also:
        Constant Field Values
      • finderBallShape

        public int finderBallShape
        Shape of the finder ball wherein DEFAULT shape is same as Outer Frame shape. in order to maintain ratio of 1:1:3:1:1 there are limited options available for ball shape. Although, you can have CIRCLE shape addition to the Default shape.
      • BALL_DEFAULT

        public static final int BALL_DEFAULT
        BALL_DEFAULT means ball shape will be same as Outer Frame Shape.
        See Also:
        Constant Field Values
      • BALL_CIRCLE

        public static final int BALL_CIRCLE
        Draw Ball in CIRCLE Shape.
        See Also:
        Constant Field Values
      • DATA_SHAPE_SQUARE

        public static final int DATA_SHAPE_SQUARE
        Draw data in stndard square modules.
        See Also:
        Constant Field Values
      • DATA_SHAPE_CIRCLE

        public static final int DATA_SHAPE_CIRCLE
        Draw module in Circle Shape.
        See Also:
        Constant Field Values
      • DATA_SHAPE_OVAL

        public static final int DATA_SHAPE_OVAL
        Draw data in eclipse shape.
        See Also:
        Constant Field Values
      • DATA_SHAPE_ROUNDED_BARS

        public static final int DATA_SHAPE_ROUNDED_BARS
        Merge the Continuous dark modules into vertical Bar having rounded ends.
        See Also:
        Constant Field Values
      • DATA_SHAPE_ROUNDED_LINEAR

        public static final int DATA_SHAPE_ROUNDED_LINEAR
        Merge the Continuous dark modules into irregular area having rounded ends and corners.
        See Also:
        Constant Field Values
      • DATA_SHAPE_DIAMOND_LINEAR

        public static final int DATA_SHAPE_DIAMOND_LINEAR
        Merge the Continuous dark modules into irregular area having diamond ends and rounded corners.
        See Also:
        Constant Field Values
      • topLeftFinderShape

        public int topLeftFinderShape
        To change the Top-Left Finder Shape. liner
      • topRightFinderShape

        public int topRightFinderShape
        To change the Top-Right Finder Shape.
      • bottomLeftFinderShape

        public int bottomLeftFinderShape
        To change the Bottom-Left Finder Shape.
      • dataBlockShape

        public int dataBlockShape
        To change the data module Shape.
      • logoBkgColorTransparency

        public float logoBkgColorTransparency
        Not used.
    • Method Detail

      • getDefaultStyleConfig

        public static StyleConfig getDefaultStyleConfig()
        Create a default instance of stylesheet with default colors and rendering style. The Obtained instance can be used further for customizations in style.
        Returns:
        StyleConfig