ContentPanelFormat

Kind of class: public class
Package:
Inherits from:
  • none
Classpath: com.johnpolacek.components.ContentPanelFormat
File last modified: Tuesday, 24 Augustus 2010, 17:26:45

Summary

Constructor
Instance properties
  • width : int
    • Width of panel
  • height : int
    • Minimum height of the panel.
  • color : uint
    • Sets the background color of the contentContainer.
  • alpha : Number
    • Sets the background alpha of the contentContainer.
  • noise : Number
    • Sets the background noise level of the contentContainer.
  • marginTop : int
    • Top margin of the panel
  • marginBottom : int
    • Bottom margin of the panel
  • marginLeft : int
    • Left margin of the panel
  • marginRight : int
    • Left margin of the panel
  • spacing : int
    • Spacing between elements
  • lineColor : uint
    • Sets the color of any divider lines.
Instance methods

Constructor

ContentPanelFormat

function ContentPanelFormat()

Instance properties

alpha

alpha:Number = 1(read,write)

Sets the background alpha of the contentContainer. Default: 1

color

color:uint = 0xFFFFFF(read,write)

Sets the background color of the contentContainer. Default: 0xFFFFFF

height

height:int(read,write)

Minimum height of the panel. Default: 0 pixels (no minimum height)

lineColor

lineColor:uint = 0x000000(read,write)

Sets the color of any divider lines. Default: 0x000000

marginBottom

marginBottom:int(read,write)

Bottom margin of the panel Default: 0 pixels

marginLeft

marginLeft:int(read,write)

Left margin of the panel Default: 0 pixels

marginRight

marginRight:int(read,write)

Left margin of the panel Default: 0 pixels

marginTop

marginTop:int(read,write)

Top margin of the panel Default: 0 pixels

noise

noise:Number(read,write)

Sets the background noise level of the contentContainer. Default: 0

spacing

spacing:int(read,write)

Spacing between elements Default: 0 pixels

width

width:int = 550(read,write)

Width of panel Default: 550

Instance methods

setFormatFromXML

function setFormatFromXML(xml:XML)

Use xml file to set formatting

setMargin

function setMargin(m:int) : void

Shortcut to set uniform margins

Parameters
m:Default is 0 (no margin)