GRASS Programmer's Manual  6.4.2(2012)
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
gui_modules.psmap_dialogs.RasterLegend Class Reference

Class representing colortable instruction. More...

Inheritance diagram for gui_modules.psmap_dialogs.RasterLegend:
Collaboration diagram for gui_modules.psmap_dialogs.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.
- Public Member Functions inherited from gui_modules.psmap_dialogs.InstructionObject
def __getitem__
def __setitem__
def GetInstruction
 Get current values.
def SetInstruction
 Set default values.

Data Fields

 type
 defaultInstruction
 instruction
- Data Fields inherited from gui_modules.psmap_dialogs.InstructionObject
 id
 unitConv

Detailed Description

Class representing colortable instruction.

Definition at line 1111 of file psmap_dialogs.py.


Constructor & Destructor Documentation

def gui_modules.psmap_dialogs.RasterLegend.__init__ (   self,
  id 
)

Reimplemented from gui_modules.psmap_dialogs.InstructionObject.

Definition at line 1113 of file psmap_dialogs.py.


Member Function Documentation

def gui_modules.psmap_dialogs.RasterLegend.__str__ (   self)
def gui_modules.psmap_dialogs.RasterLegend.EstimateHeight (   self,
  raster,
  discrete,
  fontsize,
  cols = None,
  height = None 
)

Estimate height to draw raster legend.

Definition at line 1212 of file psmap_dialogs.py.

References gui_modules.utils.split().

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

Estimate size to draw raster legend.

Definition at line 1241 of file psmap_dialogs.py.

References max.

def gui_modules.psmap_dialogs.RasterLegend.Read (   self,
  instruction,
  text,
  kwargs 
)

Read instruction and save information.

Reimplemented from gui_modules.psmap_dialogs.InstructionObject.

Definition at line 1149 of file psmap_dialogs.py.

References gui_modules.psmap_dialogs.getRasterType(), and gui_modules.render.map.


Field Documentation

gui_modules.psmap_dialogs.RasterLegend.defaultInstruction

Reimplemented from gui_modules.psmap_dialogs.InstructionObject.

Definition at line 1117 of file psmap_dialogs.py.


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