Package com.j3d.gen.docs.api
Class ImageTag
java.lang.Object
com.j3d.gen.docs.api.ImageTag
A utility class for parsing and representing
<img> HTML tags found within J3Engine documentation.
This class extracts relevant attributes such as src, alt, and scale
from a TWhtmlTag object, validates them, and provides access to the parsed information.
It ensures that image paths are relative to the application's resources and that the image
files exist and are of supported types (.png, .jpg).
- Author:
- Lehlogonolo Poole
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageTaggetInstance(TWhtmlTag tag) doublegetScale()getTag()booleanread()voidsetAltText(String altText)
-
Field Details
-
tag
-
altText
-
imagePath
-
scale
private double scale -
invalid
private boolean invalid
-
-
Constructor Details
-
ImageTag
-
ImageTag
private ImageTag()
-
-
Method Details
-
getInstance
-
getTag
-
getAltText
-
setAltText
-
getImagePath
-
getScale
public double getScale() -
isInvalid
public boolean isInvalid() -
read
- Throws:
IOException
-