# Class StyleParser.MarginInfo

java.lang.Object
com.codename1.ui.plaf.StyleParser.BoxInfo
com.codename1.ui.plaf.StyleParser.MarginInfo

Enclosing class:
  `StyleParser`

public static class StyleParser.MarginInfo extends StyleParser.BoxInfo
Encapsulates information about the padding in a style string.

- ## Field Summary

  ### Fields inherited from class StyleParser.BoxInfo

  `values`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `MarginInfo(StyleParser.ScalarValue[] values)`
  Creates a new MarginInfo.

- ## Method Summary

  ### Methods inherited from class StyleParser.BoxInfo

  `getValue, getValues, setValues, toString, toString`

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### MarginInfo

    public MarginInfo(StyleParser.ScalarValue[] values)

    Creates a new MarginInfo.

    ###### Parameters

    - `values`: 4-element array of scalar values. Indices are `Component#TOP`, `Component#BOTTOM`, `Component#LEFT` and `Component#RIGHT`.