\Line
Synopsis
class Line
extends ViewableData
{
- // members
- private ArrayList $resizedImages;
- // methods
- public void __construct()
- public static int getOptimizedLineWidth()
- public static int getEstimatedLineHeight()
- public int getLineHeight()
- public int getLineHeightWithoutMargin()
- public void addResizedImage()
- public ArrayList getResizedImages()
- public bool matchesToLine()
- public void matchImagesWidth()
- public int getLineWidth()
- public int getLineWidthWithoutMargin()
- public int getCompleteLineMargin()
- public int getDifferenceFromEstimatedHeight()
- public void __clone()
- public void setPercentageSizes()
- public HTMLText forTemplate()
Hierarchy
Extends
- ViewableData
Members
private
- $resizedImages — ArrayList
Methods
public
- __construct() — Line constructor.
- __clone() — Clones this object.
- addResizedImage() — Adds an image to this line.
- forTemplate() — This function is called when this object is rendered in a template.
- getCompleteLineMargin() — Returns the sum of the image's margin of this line.
- getDifferenceFromEstimatedHeight() — Calculates the difference between the estimated line height and the current, real line height.
- getEstimatedLineHeight() — Returns the estimated height of this line.
- getLineHeight() — Returns the current real line height.
- getLineHeightWithoutMargin() — Returns the line height without any margins.
- getLineWidth() — Returns the line width.
- getLineWidthWithoutMargin() — Returns the line width without any margin.
- getOptimizedLineWidth() — Returns the height that the lines is optimized for.
- getResizedImages() — Returns all images in this line.
- matchImagesWidth() — Resize images so that all images match exactly the line's width.
- matchesToLine() — Checks if the $image match still to this line without resizing any image.
- setPercentageSizes() — Sets the width, right margin and the top margin of this image in percentage of this line's width.