www.element4solution.com

e4s.html
Class IMG.IMAP

java.lang.Object
  extended by e4s.util.E4Object
      extended by e4s.html.E4HtmlObject
          extended by e4s.html.E4HtmlElementGeneral
              extended by e4s.html.IMG.IMAP
All Implemented Interfaces:
E4HtmlElement_Intf
Enclosing class:
IMG

public static class IMG.IMAP
extends E4HtmlElementGeneral
implements E4HtmlElement_Intf

Image MAP


Field Summary
 
Fields inherited from class e4s.html.E4HtmlElementGeneral
m_needed_scripts
 
Fields inherited from class e4s.html.E4HtmlObject
m_parent_e4sID
 
Fields inherited from class e4s.util.E4Object
CRLF, E4S_CORE_SYSTEM_LANGUAGE, NBSP, NULLSTR, URL_ENCODING_CHARSET
 
Constructor Summary
IMG.IMAP()
           
IMG.IMAP(IMG.IMAP imap)
           
IMG.IMAP(java.lang.String name)
           
 
Method Summary
 IMG.AreaPolygon add(E4JavaScript js, E4Label_Intf alt, int[] x, int[] y)
          Add a polygon to that Image-Map, associated with a E4JavaScript call.
 IMG.AreaCircle add(E4JavaScript js, E4Label_Intf alt, int x, int y, int radius)
           
 IMG.AreaRectangle add(E4JavaScript js, E4Label_Intf alt, int x1, int y1, int x2, int y2)
           
 IMG.AreaPolygon add(E4JavaScript js, int[] x, int[] y)
          Add a polygon to that Image-Map, associated with a E4JavaScript call.
 IMG.AreaCircle add(E4JavaScript js, int x, int y, int radius)
          Add a circle to that Image-Map, associated with a E4JavaScript call.
 IMG.AreaRectangle add(E4JavaScript js, int x1, int y1, int x2, int y2)
          Add a rectangle to that Image-Map, associated with a E4JavaScript call.
 IMG.AreaPolygon add(E4JavaScript js, java.lang.String alt, int[] x, int[] y)
           
 IMG.AreaCircle add(E4JavaScript js, java.lang.String alt, int x, int y, int radius)
           
 IMG.AreaRectangle add(E4JavaScript js, java.lang.String alt, int x1, int y1, int x2, int y2)
           
 IMG.AreaPolygon add(E4Method mref, E4Label_Intf alt, int[] x, int[] y)
           
 IMG.AreaCircle add(E4Method mref, E4Label_Intf alt, int x, int y, int radius)
           
 IMG.AreaRectangle add(E4Method mref, E4Label_Intf alt, int x1, int y1, int x2, int y2)
           
 IMG.AreaPolygon add(E4Method mref, int[] x, int[] y)
          Add a polygon to that Image-Map, associated with a E4Method call.
 IMG.AreaCircle add(E4Method mref, int x, int y, int radius)
           
 IMG.AreaRectangle add(E4Method mref, int x1, int y1, int x2, int y2)
           
 IMG.AreaPolygon add(E4Method mref, java.lang.String alt, int[] x, int[] y)
          Add a polygon to that Image-Map, associated with a E4Method call.
 IMG.AreaCircle add(E4Method mref, java.lang.String alt, int x, int y, int radius)
           
 IMG.AreaRectangle add(E4Method mref, java.lang.String alt, int x1, int y1, int x2, int y2)
           
 void add(IMG.Area_Intf area)
           
 void collectScripts(E4ScriptsVec v, E4ServletImplementation_Intf servlet)
          Get a vector of used scripts from all subelements.
 void collectTranslationsForEditing(E4TranslationsVec v, E4ServletImplementation_Intf servlet)
          Build a list (Vector) with translation texts used so far during display of this page.
 IMG.Area_Intf elementAt(int index)
           
 java.lang.String getID()
           
 java.lang.String getName()
           
 void setID(java.lang.String id)
          Set the ID of the IMAP element.
 void setName(java.lang.String name)
          Set the name of the IMAP element.
 int size()
           
 void toHtml(E4StringBufferHtml buf, E4ServletImplementation_Intf servlet)
          Create the HTML output for this element.
 java.lang.String toString()
           
 
Methods inherited from class e4s.html.E4HtmlElementGeneral
addScript, addScript, addScript, addStyleForEditing, addTranslationForEditing, buildStyleAttribute, buildStyleClassReference, collectStylesForEditing, collectStylesForEditing, collectStylesForEditing, collectTranslationsForEditing, createScript, createScript, debugToString, findElement, findElement, findElement, findElement, getElements, getElementsVec, getField, getId, getLastElement, getStringContent, getStyle, getSTYLE, getStyle, hasScripts, hasSTYLE, isContentClass, isE4InputField_Intf, openTag, removeAll, removeElementById, removeElements, removeElements, removeStyle, setId, setReadOnly, setStyle, setStyle, setSTYLE, setValue, Style, Style, toHtml_hidden, validate
 
Methods inherited from class e4s.html.E4HtmlObject
_getSVNVersionString, E4ID, E4ID, set_e4sID
 
Methods inherited from class e4s.util.E4Object
Calendar, CName, CName, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelSys, E4LabelSys, e4sCopyright, e4sVersion, encode, encode, encode, encodeHtml, encodeHtml, encodeHtml, encodeURL, encodeURL, encodeURL, finalize, getLINE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTraceMemory, HtmlEncode, HtmlEncode, HtmlEncode, isdecimal, isdigit, isnotok, isnotok, isnumeric, isok, isok, isok, isok, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingStack, mkdirs, null2nbsp, null2nbsp, null2nbsp, ok, ok, ok, ok, outPrintln, setLogFile4Trace, setTraceMemory, STACKTRACE, toDebug, toDouble, toFloat, toFloat, TRACE_CALLS, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, wait
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface e4s.html.E4HtmlElement_Intf
addScript, addScript, addScript, collectStylesForEditing, debugToString, findElement, findElement, getElements, getElementsVec, getField, getId, getStringContent, isContentClass, removeAll, removeElementById, removeElements, set_e4sID, setId, setReadOnly, setValue, toHtml_hidden, validate
 

Constructor Detail

IMG.IMAP

public IMG.IMAP()

IMG.IMAP

public IMG.IMAP(java.lang.String name)

IMG.IMAP

public IMG.IMAP(IMG.IMAP imap)
Method Detail

setID

public void setID(java.lang.String id)
Set the ID of the IMAP element.

Parameters:
id - the id
See Also:
setName(String), getID()

getID

public java.lang.String getID()

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)
Set the name of the IMAP element.

Parameters:
name - the name
See Also:
setID(String), getName()

add

public void add(IMG.Area_Intf area)

toString

public java.lang.String toString()
Overrides:
toString in class E4Object

add

public IMG.AreaRectangle add(E4JavaScript js,
                             int x1,
                             int y1,
                             int x2,
                             int y2)
Add a rectangle to that Image-Map, associated with a E4JavaScript call.

Parameters:
js - the E4JavaScript
x1 - left upper corner (horizontal) coordinate
y1 - left upper corner (vertical) coordinate
x2 - right lower corner (horizontal) coordinate
y2 - right lower corner (vertical) coordinate

add

public IMG.AreaCircle add(E4JavaScript js,
                          int x,
                          int y,
                          int radius)
Add a circle to that Image-Map, associated with a E4JavaScript call.

Parameters:
js - the E4JavaScript
x - coordinate of circle's center point (horizontal)
y - coordinate of circle's center point (vertical)
radius - the radius of the circle

add

public IMG.AreaPolygon add(E4JavaScript js,
                           int[] x,
                           int[] y)
Add a polygon to that Image-Map, associated with a E4JavaScript call.

Parameters:
js - the E4JavaScript
x - array of horizontal coordinate points
y - array of vertical coordinate points

add

public IMG.AreaRectangle add(E4JavaScript js,
                             E4Label_Intf alt,
                             int x1,
                             int y1,
                             int x2,
                             int y2)

add

public IMG.AreaCircle add(E4JavaScript js,
                          E4Label_Intf alt,
                          int x,
                          int y,
                          int radius)

add

public IMG.AreaPolygon add(E4JavaScript js,
                           E4Label_Intf alt,
                           int[] x,
                           int[] y)
Add a polygon to that Image-Map, associated with a E4JavaScript call.

Parameters:
js - the E4JavaScript
x - array of horizontal coordinate points
y - array of vertical coordinate points

add

public IMG.AreaRectangle add(E4JavaScript js,
                             java.lang.String alt,
                             int x1,
                             int y1,
                             int x2,
                             int y2)

add

public IMG.AreaCircle add(E4JavaScript js,
                          java.lang.String alt,
                          int x,
                          int y,
                          int radius)

add

public IMG.AreaPolygon add(E4JavaScript js,
                           java.lang.String alt,
                           int[] x,
                           int[] y)

add

public IMG.AreaRectangle add(E4Method mref,
                             int x1,
                             int y1,
                             int x2,
                             int y2)

add

public IMG.AreaCircle add(E4Method mref,
                          int x,
                          int y,
                          int radius)

add

public IMG.AreaPolygon add(E4Method mref,
                           int[] x,
                           int[] y)
Add a polygon to that Image-Map, associated with a E4Method call.

Parameters:
mref - the E4Method
x - array of horizontal coordinate points
y - array of vertical coordinate points

add

public IMG.AreaRectangle add(E4Method mref,
                             E4Label_Intf alt,
                             int x1,
                             int y1,
                             int x2,
                             int y2)

add

public IMG.AreaCircle add(E4Method mref,
                          E4Label_Intf alt,
                          int x,
                          int y,
                          int radius)

add

public IMG.AreaPolygon add(E4Method mref,
                           E4Label_Intf alt,
                           int[] x,
                           int[] y)

add

public IMG.AreaRectangle add(E4Method mref,
                             java.lang.String alt,
                             int x1,
                             int y1,
                             int x2,
                             int y2)

add

public IMG.AreaCircle add(E4Method mref,
                          java.lang.String alt,
                          int x,
                          int y,
                          int radius)

add

public IMG.AreaPolygon add(E4Method mref,
                           java.lang.String alt,
                           int[] x,
                           int[] y)
Add a polygon to that Image-Map, associated with a E4Method call.

Parameters:
mref - the E4Method
alt - the alternate (mouse over) text converted to E4LabelApp
x - array of horizontal coordinate points
y - array of vertical coordinate points

size

public int size()

elementAt

public IMG.Area_Intf elementAt(int index)

toHtml

public void toHtml(E4StringBufferHtml buf,
                   E4ServletImplementation_Intf servlet)
            throws java.lang.Exception
Description copied from interface: E4HtmlElement_Intf
Create the HTML output for this element. Also run throught all child elements, and call their E4HtmlElement_Intf.toHtml(e4s.util.E4StringBufferHtml, e4s.servlet.E4ServletImplementation_Intf) function to generate output of those objects which becomes appended. Normally, there is no need to call this function anyway, and this also might result in side effects of too-early relasing of objects in some cases. This function is called by E4ServletImplementation_Intf.write(e4s.html.E4HtmlElement) on the top level HTML element (common this is a HTML or BODY element) and branches down to all child elements.

Specified by:
toHtml in interface E4HtmlElement_Intf
Overrides:
toHtml in class E4HtmlElementGeneral
servlet - the servlet environment currently running in
Throws:
java.lang.Exception

collectTranslationsForEditing

public void collectTranslationsForEditing(E4TranslationsVec v,
                                          E4ServletImplementation_Intf servlet)
Description copied from class: E4HtmlElementGeneral
Build a list (Vector) with translation texts used so far during display of this page. Run throught all subclasses elements and collect their texts as well. Note, that a text will only be added one time. The Vector contains elements of class E4Label.

Specified by:
collectTranslationsForEditing in interface E4HtmlElement_Intf
Overrides:
collectTranslationsForEditing in class E4HtmlElementGeneral
Parameters:
v - the Vector where the styles will be collected, may not be null
servlet - the current servlet instance
See Also:
E4Label_Intf

collectScripts

public void collectScripts(E4ScriptsVec v,
                           E4ServletImplementation_Intf servlet)
Description copied from class: E4HtmlElementGeneral
Get a vector of used scripts from all subelements.

Specified by:
collectScripts in interface E4HtmlElement_Intf
Overrides:
collectScripts in class E4HtmlElementGeneral
Parameters:
v - collect the names of all scripts
servlet - the servlet context
See Also:
E4JavaScript

www.element4solution.com