Class AbstractPlacementStrategy
- java.lang.Object
-
- net.sourceforge.plantuml.ugraphic.AbstractPlacementStrategy
-
- All Implemented Interfaces:
PlacementStrategy
- Direct Known Subclasses:
PlacementStrategyVisibility
,PlacementStrategyX1X2
,PlacementStrategyX1Y2Y3
,PlacementStrategyY1Y2
,PlacementStrategyY1Y2Center
,PlacementStrategyY1Y2Left
,PlacementStrategyY1Y2Right
public abstract class AbstractPlacementStrategy extends Object implements PlacementStrategy
-
-
Constructor Summary
Constructors Constructor Description AbstractPlacementStrategy(StringBounder stringBounder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(TextBlock block)
protected Map<TextBlock,Dimension2D>
getDimensions()
protected double
getMaxHeight()
protected double
getMaxHeight(Iterator<Dimension2D> it)
protected double
getMaxWidth()
protected double
getMaxWidth(Iterator<Dimension2D> it)
protected StringBounder
getStringBounder()
protected double
getSumHeight()
protected double
getSumHeight(Iterator<Dimension2D> it)
protected double
getSumWidth()
protected double
getSumWidth(Iterator<Dimension2D> it)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sourceforge.plantuml.ugraphic.PlacementStrategy
getPositions
-
-
-
-
Constructor Detail
-
AbstractPlacementStrategy
public AbstractPlacementStrategy(StringBounder stringBounder)
-
-
Method Detail
-
add
public void add(TextBlock block)
- Specified by:
add
in interfacePlacementStrategy
-
getDimensions
protected Map<TextBlock,Dimension2D> getDimensions()
-
getSumWidth
protected double getSumWidth()
-
getSumHeight
protected double getSumHeight()
-
getMaxHeight
protected double getMaxHeight()
-
getMaxWidth
protected double getMaxWidth()
-
getSumWidth
protected double getSumWidth(Iterator<Dimension2D> it)
-
getSumHeight
protected double getSumHeight(Iterator<Dimension2D> it)
-
getMaxWidth
protected double getMaxWidth(Iterator<Dimension2D> it)
-
getMaxHeight
protected double getMaxHeight(Iterator<Dimension2D> it)
-
getStringBounder
protected final StringBounder getStringBounder()
-
-