GRASS Programmer's Manual  6.5.svn(2012)-r51648
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
instructions.RasterLegend Class Reference

Class representing colortable instruction. More...

Inheritance diagram for instructions.RasterLegend:
Collaboration diagram for instructions.RasterLegend:

Public Member Functions

def __init__
def __str__
 Returns particular part of text instruction.
def Read
 Read instruction and save information.
def EstimateHeight
 Estimate height to draw raster legend.
def EstimateWidth
 Estimate size to draw raster legend.

Data Fields

 type
 defaultInstruction
 instruction

Detailed Description

Class representing colortable instruction.

Definition at line 1277 of file instructions.py.


Constructor & Destructor Documentation

def instructions.RasterLegend.__init__ (   self,
  id 
)

Reimplemented from instructions.InstructionObject.

Definition at line 1279 of file instructions.py.


Member Function Documentation

def instructions.RasterLegend.EstimateHeight (   self,
  raster,
  discrete,
  fontsize,
  cols = None,
  height = None 
)

Estimate height to draw raster legend.

Definition at line 1378 of file instructions.py.

References utils.split().

def instructions.RasterLegend.EstimateWidth (   self,
  raster,
  discrete,
  fontsize,
  cols = None,
  width = None,
  paperInstr = None 
)

Estimate size to draw raster legend.

Definition at line 1407 of file instructions.py.

References max.

def instructions.RasterLegend.Read (   self,
  instruction,
  text,
  kwargs 
)

Read instruction and save information.

Reimplemented from instructions.InstructionObject.

Definition at line 1315 of file instructions.py.

References utils.getRasterType().


Field Documentation


The documentation for this class was generated from the following file: