net.sourceforge.plantuml.ugraphic
Class AbstractPlacementStrategy

java.lang.Object
  extended by net.sourceforge.plantuml.ugraphic.AbstractPlacementStrategy
All Implemented Interfaces:
PlacementStrategy
Direct Known Subclasses:
PlacementStrategyVisibility, PlacementStrategyX1X2, PlacementStrategyX1Y2Y3, PlacementStrategyY1Y2, PlacementStrategyY1Y2Left

public abstract class AbstractPlacementStrategy
extends Object
implements PlacementStrategy


Constructor Summary
AbstractPlacementStrategy(StringBounder stringBounder)
           
 
Method Summary
 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 interface PlacementStrategy

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()


Copyright © 2012. All Rights Reserved.