public class BoxTransform extends Object
| Constructor and Description |
|---|
BoxTransform(org.fit.cssbox.layout.Box box)
Creates a transformation for the given box based on its CSS properties.
|
BoxTransform(BoxTransform src) |
| Modifier and Type | Method and Description |
|---|---|
BoxTransform |
concatenate(BoxTransform src)
Concatenates another transformation to this transformation.
|
protected AffineTransform |
createTransform(org.fit.cssbox.layout.ElementBox elem) |
org.fit.cssbox.layout.Box |
getBox()
Obtains the source box.
|
AffineTransform |
getTransform()
Obtains the transformation that should be applied.
|
boolean |
isEmpty()
Checks if the transformation is empty (no transformation is applied).
|
org.fit.layout.model.Rectangular |
transformRect(org.fit.layout.model.Rectangular rect)
Transforms a rectangle to other rectangle using the given transformation.
|
public BoxTransform(org.fit.cssbox.layout.Box box)
box - the source boxpublic BoxTransform(BoxTransform src)
public org.fit.cssbox.layout.Box getBox()
public AffineTransform getTransform()
null if no transformation should be applied.public boolean isEmpty()
true when no transformation is applied.public BoxTransform concatenate(BoxTransform src)
src - public org.fit.layout.model.Rectangular transformRect(org.fit.layout.model.Rectangular rect)
rect - the source rectangleprotected AffineTransform createTransform(org.fit.cssbox.layout.ElementBox elem)
Copyright © 2016. All rights reserved.