Class: TChart::Coordinate
- Inherits:
-
Object
- Object
- TChart::Coordinate
- Defined in:
- lib/tchart/model/coordinate.rb
Overview
An (x,y) location on the chart. x and y can be in any units, e.g. millimeters, pixels, etc.
Instance Attribute Summary collapse
-
#x ⇒ Object
readonly
Returns the value of attribute x.
-
#y ⇒ Object
readonly
Returns the value of attribute y.
Instance Method Summary collapse
-
#initialize(x, y) ⇒ Coordinate
constructor
A new instance of Coordinate.
Constructor Details
#initialize(x, y) ⇒ Coordinate
Returns a new instance of Coordinate.
12 13 14 15 |
# File 'lib/tchart/model/coordinate.rb', line 12 def initialize(x, y) @x = x @y = y end |
Instance Attribute Details
#x ⇒ Object (readonly)
Returns the value of attribute x.
9 10 11 |
# File 'lib/tchart/model/coordinate.rb', line 9 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y.
10 11 12 |
# File 'lib/tchart/model/coordinate.rb', line 10 def y @y end |