net.aerith.misao.image
Class ImageGalleryElement

java.lang.Object
  |
  +--net.aerith.misao.image.ImageGalleryElement

public class ImageGalleryElement
extends java.lang.Object

The ImageGalleryElement represents an element in the image gallery.


Field Summary
protected  java.util.ArrayList data
          The data.
protected  Format format
          The image format.
protected  java.lang.String group_title
          The group title.
protected  MonoImage image
          The image.
protected  java.util.ArrayList list_anchor
          The list of image anchors.
protected  ImageGalleryElement[] sub_elements
          The list of sub elements.
protected  java.lang.String title
          The title.
protected  java.net.URL url
          The image URL.
 
Constructor Summary
ImageGalleryElement(MonoImage image, java.net.URL url, Format format)
          Constructs a single ImageGalleryElement.
ImageGalleryElement(java.lang.String group_title, java.util.Vector sub_elements)
          Constructs a multi ImageGalleryElement.
 
Method Summary
 void addData(java.lang.String data)
          Adds a data.
 void addImageAnchor(HtmlImageAnchor anchor)
          Adds an image anchor.
 java.lang.String[] getData()
          Gets the data.
 ImageGalleryElement[] getElements()
          Gets the list of sub elements.
 Format getFormat()
          Gets the image format.
 java.lang.String getGroupTitle()
          Gets the group title.
 MonoImage getImage()
          Gets the image.
 HtmlImageAnchor[] getImageAnchors()
          Gets the list of image anchors.
 java.lang.String getTitle()
          Gets the title.
 java.net.URL getURL()
          Gets the image URL.
 boolean isSingle()
          Returns true when the element is a single element.
 void setData(java.util.Vector data)
          Sets the data.
 void setTitle(java.lang.String title)
          Sets the title.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

image

protected MonoImage image
The image. It is only in a single element.

url

protected java.net.URL url
The image URL. It is only in a single element.

format

protected Format format
The image format. It is only in a single element.

list_anchor

protected java.util.ArrayList list_anchor
The list of image anchors. It is only in a single

sub_elements

protected ImageGalleryElement[] sub_elements
The list of sub elements. It is only in a multi element.

group_title

protected java.lang.String group_title
The group title. It is only in a multi element.

title

protected java.lang.String title
The title.

data

protected java.util.ArrayList data
The data.
Constructor Detail

ImageGalleryElement

public ImageGalleryElement(MonoImage image,
                           java.net.URL url,
                           Format format)
Constructs a single ImageGalleryElement.
Parameters:
image - the image.
url - the image URL.
format - the image format.

ImageGalleryElement

public ImageGalleryElement(java.lang.String group_title,
                           java.util.Vector sub_elements)
Constructs a multi ImageGalleryElement.
Parameters:
group_title - the group title.
sub_elements - the list of sub elements.
Method Detail

isSingle

public boolean isSingle()
Returns true when the element is a single element.

getImage

public MonoImage getImage()
Gets the image. It is only in a single element.
Returns:
the image.

getURL

public java.net.URL getURL()
Gets the image URL. It is only in a single element.
Returns:
the image URL.

getFormat

public Format getFormat()
Gets the image format. It is only in a single element.
Returns:
the image format.

getImageAnchors

public HtmlImageAnchor[] getImageAnchors()
Gets the list of image anchors. It is only in a single element.
Returns:
the list of image anchors.

addImageAnchor

public void addImageAnchor(HtmlImageAnchor anchor)
Adds an image anchor.
Parameters:
anchor - the image anchor.

getElements

public ImageGalleryElement[] getElements()
Gets the list of sub elements. It is only in a multi element.
Returns:
the list of sub elements.

getGroupTitle

public java.lang.String getGroupTitle()
Gets the group title. It is only in a multi element.
Returns:
the group title.

getTitle

public java.lang.String getTitle()
Gets the title.
Returns:
the title.

setTitle

public void setTitle(java.lang.String title)
Sets the title.
Parameters:
title - the title.

getData

public java.lang.String[] getData()
Gets the data.
Returns:
the data.

setData

public void setData(java.util.Vector data)
Sets the data.
Parameters:
data - the list of data.

addData

public void addData(java.lang.String data)
Adds a data.
Parameters:
data - the data.