com.intellij.formatting
Class ChildAttributes

java.lang.Object
  extended by com.intellij.formatting.ChildAttributes

public class ChildAttributes
extends java.lang.Object

Defines the indent and alignment settings which are applied to a new child block added to a formatting model block. Used for auto-indenting when the Enter key is pressed.

See Also:
Block.getChildAttributes(int)

Constructor Summary
ChildAttributes(Indent childIndent, Alignment alignment)
          Creates a child attributes setting with the specified indent and alignment.
 
Method Summary
 Alignment getAlignment()
          Returns the alignment of the child block.
 Indent getChildIndent()
          Returns the indent of the child block.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChildAttributes

public ChildAttributes(Indent childIndent,
                       Alignment alignment)
Creates a child attributes setting with the specified indent and alignment.

Parameters:
childIndent - the indent for the child block.
alignment - the alignment for the child block.
Method Detail

getChildIndent

public Indent getChildIndent()
Returns the indent of the child block.

Returns:
the indent setting.

getAlignment

public Alignment getAlignment()
Returns the alignment of the child block.

Returns:
the alignment setting.