public class XMLMap extends java.lang.Object implements ParagraphElement, Alignment
TYPE_NONE| Constructor and Description |
|---|
XMLMap(XMLParentArticle article)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
char |
getAlignment()
Return the alignment of the Map.
|
XMLParentArticle |
getArticle()
Return the article in which this Map is used.
|
java.lang.String |
getDeclaration()
Return the declaration ID of the element.
|
int |
getHeight()
Return the Map height.
|
double |
getLatitudeCenter()
Return the map center latitude.
|
double |
getLongitudeCenter()
Return the map center lontitude.
|
java.lang.String |
getMapID()
Return the ID of the Map in its article.
|
java.lang.String |
getProjection()
Return the map projection.
|
int |
getWidth()
Return the Map width.
|
int |
getZoomLevel()
Return the map zoom level.
|
boolean |
hasHeight()
Return true if the Map has a specified height.
|
boolean |
hasSize()
Return true if the Map has a specified size.
|
boolean |
hasWidth()
Return true if the Map has a specified width.
|
boolean |
isFloat()
Return true if the map element should have the "float" attribute.
|
boolean |
isRelativeWidth()
Return true if the image width is relative (in %).
|
void |
setAlignment(char align)
Set the alignment of the Map.
|
void |
setBounds(double latCenter,
double lonCenter,
int zoomLevel)
Set the map bounds.
|
void |
setFloat(boolean isFloat)
Set if the map element should have the "float" attribute.
|
void |
setHeight(int height)
Set the Map height.
|
void |
setProjection(java.lang.String projection)
Set the map projection.
|
void |
setWidth(int width,
boolean relWidth)
Set the Map width.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCustomStyles, getInlinedStyle, getStyle, hasInlinedStyle, setCustomStyles, setCustomStyles, setInlinedStylepublic XMLMap(XMLParentArticle article)
article - the articlepublic java.lang.String getDeclaration()
getDeclaration in interface StyledElementpublic void setProjection(java.lang.String projection)
projection - the map projectionpublic java.lang.String getProjection()
public void setBounds(double latCenter,
double lonCenter,
int zoomLevel)
latCenter - the ap center latitudelonCenter - the map center lontitudezoomLevel - the map zoom levelpublic double getLatitudeCenter()
public double getLongitudeCenter()
public int getZoomLevel()
public java.lang.String getMapID()
public XMLParentArticle getArticle()
public void setAlignment(char align)
setAlignment in interface Alignmentalign - the alignmentAlignmentpublic char getAlignment()
getAlignment in interface AlignmentAlignmentpublic void setFloat(boolean isFloat)
isFloat - true if the map element should have the "float" attributepublic boolean isFloat()
public void setWidth(int width,
boolean relWidth)
width - the Map widthrelWidth - true if the width is relative (in percent)public boolean isRelativeWidth()
public void setHeight(int height)
height - the Map heightpublic int getWidth()
public int getHeight()
public boolean hasSize()
public boolean hasWidth()
public boolean hasHeight()
Copyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence