org.qtitools.qti.node.item.interaction.graphic
Interface Hotspot

All Known Implementing Classes:
AssociableHotspot, HotspotChoice

public interface Hotspot

Some of the graphic interactions involve images with specially defined areas or hotspots. Attribute : shape [1]: shape The shape of the hotspot. Attribute : coords [1]: coords The size and position of the hotspot, interpreted in conjunction with the shape. Attribute : hotspotLabel [0..1]: string256 The alternative text for this (hot) area of the image, if specified it must be treated in the same way as alternative text for img. For hidden hotspots this label is ignored.

Author:
Jonathon Hare

Field Summary
static java.lang.String ATTR_COORDS_NAME
          Name of coords attribute in xml schema.
static java.lang.String ATTR_HOTSPOT_LABEL_NAME
          Name of hotspotLabel attribute in xml schema.
static java.lang.String ATTR_SHAPE_NAME
          Name of shape attribute in xml schema.
 
Method Summary
 java.util.List<java.lang.Integer> getCoords()
          Gets value of coords attribute.
 java.lang.String getHotspotLabel()
          Gets value of hotspotLabel attribute.
 Shape getShape()
          Gets value of shape attribute.
 void setHotspotLabel(java.lang.String hotspotLabel)
          Sets new value of hotspotLabel attribute.
 void setShape(Shape shape)
          Sets new value of shape attribute.
 

Field Detail

ATTR_SHAPE_NAME

static final java.lang.String ATTR_SHAPE_NAME
Name of shape attribute in xml schema.

See Also:
Constant Field Values

ATTR_COORDS_NAME

static final java.lang.String ATTR_COORDS_NAME
Name of coords attribute in xml schema.

See Also:
Constant Field Values

ATTR_HOTSPOT_LABEL_NAME

static final java.lang.String ATTR_HOTSPOT_LABEL_NAME
Name of hotspotLabel attribute in xml schema.

See Also:
Constant Field Values
Method Detail

setShape

void setShape(Shape shape)
Sets new value of shape attribute.

Parameters:
shape - new value of shape attribute
See Also:
getShape()

getShape

Shape getShape()
Gets value of shape attribute.

Returns:
value of shape attribute
See Also:
setShape(org.qtitools.qti.node.expression.operator.Shape)

getCoords

java.util.List<java.lang.Integer> getCoords()
Gets value of coords attribute.

Returns:
value of coords attribute

setHotspotLabel

void setHotspotLabel(java.lang.String hotspotLabel)
Sets new value of hotspotLabel attribute.

Parameters:
hotspotLabel - new value of hotspotLabel attribute
See Also:
getHotspotLabel()

getHotspotLabel

java.lang.String getHotspotLabel()
Gets value of hotspotLabel attribute.

Returns:
value of hotspotLabel attribute
See Also:
setHotspotLabel(java.lang.String)


Copyright © 2009. All Rights Reserved.