public HtmlComponent(HtmlComponent component, JRBaseObjectFactory objectFactory) {
this.scaleType = component.getScaleType();
this.horizontalAlign = component.getHorizontalAlign();
this.verticalAlign = component.getVerticalAlign();
this.htmlContentExpression = objectFactory.getExpression(component.getHtmlContentExpression());
this.context = new BaseComponentContext(component.getContext(), objectFactory);
this.evaluationTime= component.getEvaluationTime();
this.evaluationGroup = component.getEvaluationGroup();
}