CyDAS Home funded by   Sponsor: DFG
CyDASGeneralControls Documentation Class ImageMapArea Class ImageMapAreaSelectedEventArgs Documentation Section HowTo Section Online Analysis Section Download Section Resources Section About Section

CyDAS General Controls: Class ImageMapData

The class ImageMapData describes the data pertaining to an image map. Among them are the areas defined in the map, the image proper, and additional information for web use.

Overview


ImageMapData
New() 
Areas: ArrayList {readonly}
Bitmap: System.Drawing.Bitmap
DefaultOnclick: String
DefaultTarget: String
ImageBorder: Integer
ImageLocation: String
Name: String
Tag: Object
addArea(ByRef Area: ImageMapArea): Void
addAreas(ByRef Areas: ArrayList): Void
clone(): Object {implements IClonable.clone}
getMapHTML(): String
getSelectedArea(point: System.Drawing.Point): ImageMapArea
removeArea(ByRef area: ImageMapArea): Void
toHTML(): String
transformAreaCoordinates(addX: Integer, addY: Integer): Void

Programming Language

Availability

Constructors

Public Sub New()

Instantiates a new ImageMapData object.

Interfaces

ICloneable

is implemented with the clone function.

Enumerations

The class does not provide enumerations.

Properties

ReadOnly Property Areas As ArrayList

Gets an array list containing the ImageMapArea objects representing the distinct areas of the image map.

Property Value

Remarks

Bitmap As System.Drawing.Bitmap

Gets or sets the image of the image map.

Property Value

Remarks

ImageBorder As Integer

Gets or sets the thickness of the image border in web use.

Property Value

Remarks

Examples

ImageLocation As String

Gets or sets the URL of the image.

Property Value

Remarks

Examples

Name As String

Gets or sets the name of the image map.

Property Value

Remarks

Examples

Tag As Object

Gets or sets an object associated with the image map.

Property Value

Remarks

DefaultTarget As String

Gets or sets the default value for the HTML target (name of the browser document window) the URL linked with an image map area is to be opened in.

Property Value

Remarks

Examples

DefaultOnclick As String

Gets or sets the default value for the command to be executed by the browser (e.g. JavaScript) when an area of the image map is clicked.

Property Value

Remarks

Examples

Methods

Public Sub addArea(ByRef Area As ImageMapArea)

Adds a reference to an ImageMapArea object to the image map.

Return Value

Parameters

Remarks

Public Sub addAreas(ByRef Areas As ArrayList)

Adds references to ImageMapArea objects to the image map.

Return Value

Parameters

Remarks

Public Function clone() As Object

Returns a deep copy of the image map. The copy contains copies of the objects of the image map, whith the exception of the Tag property whose reference is copied.

Return Value

Parameters

Implements

Remarks

Public Function getMapHTML() As String

Returns an HTML representation of the HTML "map" element of the image map. The "img" element is not included.

Return Value

Parameters

Remarks

Public Function getSelectedArea(ByVal point As System.Drawing.Point) As ImageMapArea

Returns an ImageMapArea which contains the point.

Return Value

Parameters

Remarks

Public Sub removeArea(ByRef area As ImageMapArea)

Removes an area from the image map.

Return Value

Parameters

Public Function toHTML() As String

Returns an HTML representation of the whole image map, including both the "img" and the "map" elements.

Return Value

Parameters

Remarks

Public Sub transformAreaCoordinates(ByVal addX As Integer, ByVal addY As Integer)

Transforms the coordinates of the areas of the image map by adding the given values to the x and y coordinates of the points of the areas.

Return Value

Parameters

Remarks

Interaction with other classes

Classes using ImageMapData

The ImageMapData class is the central data component of the ImageMapControl where it stores all information on the image map.

Classes used by ImageMapData

An ImageMapData object contains many references to ImageMapArea objects representing the area elements of the map.