~ubuntu-branches/ubuntu/wily/ctioga2/wily

« back to all changes in this revision

Viewing changes to lib/ctioga2/graphics/styles/curve.rb

  • Committer: Package Import Robot
  • Author(s): Vincent Fourmond
  • Date: 2013-07-08 20:58:17 UTC
  • mfrom: (6.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130708205817-cephnc6etndyxrrp
Tags: 0.4-2
* Upload to unstable
* Already conforms to newer standards

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
# This module contains all the classes used by ctioga
18
18
module CTioga2
19
19
 
20
 
  Version::register_svn_info('$Revision: 198 $', '$Date: 2010-11-30 00:48:23 +0100 (Tue, 30 Nov 2010) $')
 
20
  Version::register_svn_info('$Revision: 349 $', '$Date: 2012-12-25 22:23:27 +0100 (Tue, 25 Dec 2012) $')
21
21
 
22
22
  module Graphics
23
23
 
28
28
      # \todo maybe for objects different than Curve2D, a subclass of
29
29
      # CurveStyle could be used ? This way, we could have clearly
30
30
      # separated legends and the like ?
 
31
      #
 
32
      # @todo This should probably be a subclass of basicStyle, to
 
33
      # handle style sheets.
31
34
      class CurveStyle
32
35
 
33
36
        # The style of the line that is drawn, as a StrokeStyle. 
105
108
        #    plotted onto
106
109
        #
107
110
        # \todo make #legend another object derived from BasicStyle ?
 
111
        #
 
112
        # @todo This function should essentially disappear if we make
 
113
        # this derive from BasicStyle.
108
114
        def set_from_hash(hash)
109
115
          @line = StrokeStyle.from_hash(hash, 'line_%s')
110
116
          @marker = MarkerStyle.from_hash(hash, 'marker_%s')