lib/ctioga2/graphics/styles/curve.rb in ctioga2-0.3 vs lib/ctioga2/graphics/styles/curve.rb in ctioga2-0.4

- old
+ new

@@ -15,21 +15,24 @@ require 'ctioga2/log' # This module contains all the classes used by ctioga module CTioga2 - Version::register_svn_info('$Revision$', '$Date$') + Version::register_svn_info('$Revision: 349 $', '$Date: 2012-12-25 22:23:27 +0100 (Tue, 25 Dec 2012) $') module Graphics module Styles # A class holding all the styles for a curve. # # \todo maybe for objects different than Curve2D, a subclass of # CurveStyle could be used ? This way, we could have clearly # separated legends and the like ? + # + # @todo This should probably be a subclass of basicStyle, to + # handle style sheets. class CurveStyle # The style of the line that is drawn, as a StrokeStyle. attr_accessor :line @@ -103,9 +106,12 @@ # * 'legend': the legend of the curve # * '[xy]axis': the name of the axis the curve should be # plotted onto # # \todo make #legend another object derived from BasicStyle ? + # + # @todo This function should essentially disappear if we make + # this derive from BasicStyle. def set_from_hash(hash) @line = StrokeStyle.from_hash(hash, 'line_%s') @marker = MarkerStyle.from_hash(hash, 'marker_%s') @error_bar = ErrorBarStyle.from_hash(hash, 'error_bar_%s') @location = LocationStyle.from_hash(hash, 'location_%s')