func (l *Layer) FormatString(f format.Formatter) string {
	l.Format(f)
	return f.Output()
}
FormatString outputs data using given formatter.
package table
import (
	"github.com/yofu/dxf/color"
	"github.com/yofu/dxf/format"
	"github.com/yofu/dxf/handle"
)
var (
	LY_0 = NewLayer("0", color.White, LT_CONTINUOUS)
)
type Layer struct {
	handle    int
	owner     handle.Handler
	name      string
	flag      int
	Color     color.ColorNumber
	LineType  *LineType
	lineWidth int
	PlotStyle handle.Handler
}
func NewLayer(name string, color color.ColorNumber, lt *LineType) *Layer {
	l := new(Layer)
	l.name = name
	l.Color = color
	l.LineType = lt
	l.lineWidth = -3
	return l
}
func (l *Layer) IsSymbolTable() bool {
	return true
}
func (l *Layer) Format(f format.Formatter) {
	f.WriteString(0, "LAYER")
	f.WriteHex(5, l.handle)
	if l.owner != nil {
		f.WriteHex(330, l.owner.Handle())
	}
	f.WriteString(100, "AcDbSymbolTableRecord")
	f.WriteString(100, "AcDbLayerTableRecord")
	f.WriteString(2, l.name)
	f.WriteInt(70, l.flag)
	f.WriteInt(62, int(l.Color))
	f.WriteString(6, l.LineType.Name())
	f.WriteInt(370, l.lineWidth)
	f.WriteHex(390, l.PlotStyle.Handle())
}
func (l *Layer) String() string {
	f := format.NewASCII()
	return l.FormatString(f)
}