Class: NSWTopo::Labels::Label

Inherits:
Struct
  • Object
show all
Defined in:
lib/nswtopo/layer/labels.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#alongObject

Returns the value of attribute along

Returns:

  • (Object)

    the current value of along



249
250
251
# File 'lib/nswtopo/layer/labels.rb', line 249

def along
  @along
end

#attributesObject

Returns the value of attribute attributes

Returns:

  • (Object)

    the current value of attributes



249
250
251
# File 'lib/nswtopo/layer/labels.rb', line 249

def attributes
  @attributes
end

#elementsObject

Returns the value of attribute elements

Returns:

  • (Object)

    the current value of elements



249
250
251
# File 'lib/nswtopo/layer/labels.rb', line 249

def elements
  @elements
end

#feature_indexObject

Returns the value of attribute feature_index

Returns:

  • (Object)

    the current value of feature_index



249
250
251
# File 'lib/nswtopo/layer/labels.rb', line 249

def feature_index
  @feature_index
end

#hullObject

Returns the value of attribute hull

Returns:

  • (Object)

    the current value of hull



249
250
251
# File 'lib/nswtopo/layer/labels.rb', line 249

def hull
  @hull
end

#label_indexObject

Returns the value of attribute label_index

Returns:

  • (Object)

    the current value of label_index



249
250
251
# File 'lib/nswtopo/layer/labels.rb', line 249

def label_index
  @label_index
end

#layer_nameObject

Returns the value of attribute layer_name

Returns:

  • (Object)

    the current value of layer_name



249
250
251
# File 'lib/nswtopo/layer/labels.rb', line 249

def layer_name
  @layer_name
end

#ordinalObject

Returns the value of attribute ordinal.



266
267
268
# File 'lib/nswtopo/layer/labels.rb', line 266

def ordinal
  @ordinal
end

#priorityObject

Returns the value of attribute priority

Returns:

  • (Object)

    the current value of priority



249
250
251
# File 'lib/nswtopo/layer/labels.rb', line 249

def priority
  @priority
end

Instance Method Details

#<=>(other) ⇒ Object



267
268
269
# File 'lib/nswtopo/layer/labels.rb', line 267

def <=>(other)
  self.ordinal <=> other.ordinal
end

#categoriesObject



258
259
260
# File 'lib/nswtopo/layer/labels.rb', line 258

def categories
  attributes["categories"]
end

#conflictsObject



262
263
264
# File 'lib/nswtopo/layer/labels.rb', line 262

def conflicts
  @conflicts ||= Set.new
end

#optional?Boolean

Returns:

  • (Boolean)


254
255
256
# File 'lib/nswtopo/layer/labels.rb', line 254

def optional?
  attributes["optional"]
end

#point?Boolean

Returns:

  • (Boolean)


250
251
252
# File 'lib/nswtopo/layer/labels.rb', line 250

def point?
  along.nil?
end