use of com.ramussoft.reportgef.model.ArrowBounds in project ramus by Vitaliy-Yakovchuk.
the class BoundsCloner method copy.
public static Bounds copy(Bounds bounds) {
if (bounds instanceof QBounds) {
QBounds qBounds = (QBounds) bounds;
QBounds bounds2 = new QBounds();
bounds2.setBackground(copy(qBounds.getBackground()));
bounds2.setComponentType(qBounds.getComponentType());
bounds2.setElementId(qBounds.getElementId());
bounds2.setFont(qBounds.getFont());
bounds2.setFontColor(qBounds.getFontColor());
bounds2.setForeground(copy(qBounds.getForeground()));
bounds2.setLinkElementId(qBounds.getLinkElementId());
bounds2.setLocation(qBounds.getLocation());
bounds2.setPosition(qBounds.getPosition());
bounds2.setRotation(qBounds.getRotation());
bounds2.setSize(qBounds.getSize());
return bounds2;
} else {
ArrowBounds arrowBounds = (ArrowBounds) bounds;
ArrowBounds bounds2 = new ArrowBounds();
bounds2.setComponentType(arrowBounds.getComponentType());
bounds2.setElementId(arrowBounds.getElementId());
bounds2.setFont(arrowBounds.getFont());
bounds2.setFontColor(arrowBounds.getFontColor());
bounds2.setForeground(copy(arrowBounds.getForeground()));
bounds2.setLinkElementId(arrowBounds.getLinkElementId());
bounds2.setPosition(arrowBounds.getPosition());
bounds2.setFromBounds(arrowBounds.getFromBounds());
bounds2.setPoints(copy(arrowBounds.getPoints()));
bounds2.setToBounds(arrowBounds.getToBounds());
bounds2.setFromPreferences(arrowBounds.getFromPreferences());
bounds2.setToPreferences(arrowBounds.getToPreferences());
return bounds2;
}
}
Aggregations