framework
Class MapElement

java.lang.Object
  extended by no.tellu.cdlc.gui.GuiElement
      extended by framework.MapElement
All Implemented Interfaces:
no.tellu.cdlc.gui.ElementListner

public class MapElement
extends no.tellu.cdlc.gui.GuiElement

MapElement.java

Draws a map with the given height and the max width of the element. The map is not selectable.


Field Summary
 
Fields inherited from class no.tellu.cdlc.gui.GuiElement
ANY, DECIMAL, EMAILADDR, NUMERIC, PASSWORD, PASSWORD_NUMERIC, PHONENUMBER, URL
 
Constructor Summary
MapElement(java.lang.String elementId, int mapWidth, int mapHeight, MapObject map)
          Constructor MapElement
 
Method Summary
 void paint(javax.microedition.lcdui.Graphics g, boolean selected)
          Paints the map image and a border around it.
 
Methods inherited from class no.tellu.cdlc.gui.GuiElement
backPressed, callbackAction, changeFont, charPressed, clearButton, clearFields, contains, countCharactersToWidth, countCharactersToWidth, drawBorder, drawBorder, drawString, drawString, elementLayoutManager, fire, getComponentAt, getCurrGuiElement, getElement, getElementId, getFieldColour, getFieldType, getFont, getFontColour, getHeight, getHelpString, getInnerheight, getInnerWidth, getInsetBottom, getInsetLeft, getInsetRight, getInsetTop, getLabel, getLineColour, getMaxCharacters, getMaxHeight, getMaxWidth, getMinCharacters, getParent, getPreferredHeight, getPreferredWidth, getSoundFileName, getValue, getWidth, getWidtOfString, getWidtOfString, getX, getY, init, isAllElementsComplete, isBorderVisible, isEditable, isFocused, isHidden, isInputValidated, isLayoutNeeded, isMaximumSizeSet, isPreferredHeightSizeSet, isPreferredSizeSet, isPreferredWidhtSizeSet, isSelectable, isVisible, moveDown, moveLeft, moveRight, moveToShow, moveUp, numberPressed, paint, paint, poundPressed, remove, replaceTabInString, setAutoLayout, setBorderVisible, setBounds, setDrawBackground, setEditable, setElementId, setElementListner, setElementPosition, setFieldType, setFocused, setFont, setFrameSize, setGroupElement, setHeight, setHelpString, setHidden, setInsetBottom, setInsetLeft, setInsetRight, setInsets, setInsetTop, setLabel, setLayoutNeeded, setLayoutNeeded, setMaxCharacters, setMaximumSize, setMinCharacters, setParent, setPreferredSize, setSelectable, setSize, setSoundFileName, setWidth, setX, setY, starPressed, truncate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapElement

public MapElement(java.lang.String elementId,
                  int mapWidth,
                  int mapHeight,
                  MapObject map)
Constructor MapElement

Parameters:
elementId - The id of the object of this class
mapHeight - The map height to be set
map - The object containing the map information
Method Detail

paint

public void paint(javax.microedition.lcdui.Graphics g,
                  boolean selected)
Paints the map image and a border around it.

Overrides:
paint in class no.tellu.cdlc.gui.GuiElement