Class: Zebra::Epl::Text
Instance Attribute Summary collapse
Attributes included from Printable
#data, #position, #x, #y
Instance Method Summary
collapse
Methods included from Printable
#initialize, #rotation, #rotation=
Instance Attribute Details
#font ⇒ Object
Returns the value of attribute font.
8
9
10
|
# File 'lib/zebra/epl/text.rb', line 8
def font
@font
end
|
Instance Method Details
#h_multiplier=(multiplier) ⇒ Object
36
37
38
39
|
# File 'lib/zebra/epl/text.rb', line 36
def h_multiplier=(multiplier)
HorizontalMultiplier.validate_multiplier multiplier
@h_multiplier = multiplier
end
|
#print_mode ⇒ Object
20
21
22
|
# File 'lib/zebra/epl/text.rb', line 20
def print_mode
@print_mode || PrintMode::NORMAL
end
|
#print_mode=(mode) ⇒ Object
15
16
17
18
|
# File 'lib/zebra/epl/text.rb', line 15
def print_mode=(mode)
PrintMode.validate_mode mode
@print_mode = mode
end
|
#to_epl ⇒ Object
46
47
48
49
|
# File 'lib/zebra/epl/text.rb', line 46
def to_epl
check_attributes
["A#{x}", y, rotation, font, h_multiplier, v_multiplier, print_mode, "\"#{data}\""].join(",")
end
|
#v_multiplier=(multiplier) ⇒ Object
41
42
43
44
|
# File 'lib/zebra/epl/text.rb', line 41
def v_multiplier=(multiplier)
VerticalMultiplier.validate_multiplier multiplier
@v_multiplier = multiplier
end
|