double paddingX, double paddingY, boolean editable, double scale) {
super(originX, originY, horizontalAlignment, borderWidth, paddingX, paddingY, editable, scale);
}
+
+ public TextElementHandler(double originX, double originY, Alignment horizontalAlignment,
+ Alignment verticalAlignment, double borderWidth, double paddingX, double paddingY, boolean editable,
+ double scale) {
+ super(originX, originY, horizontalAlignment, verticalAlignment, borderWidth, paddingX, paddingY, editable, scale);
+ }
@Override
public Rectangle2D getBounds(IElement e, Rectangle2D size) {
}
public TextElementNoBounds(double originX, double originY, Alignment horizontalAlignment, double borderWidth, double paddingX, double paddingY, boolean editable, double scale) {
+ this(originX, originY, horizontalAlignment, Alignment.BASELINE, borderWidth, paddingX, paddingY, editable, scale);
+ }
+
+ public TextElementNoBounds(double originX, double originY, Alignment horizontalAlignment, Alignment verticalAlignment, double borderWidth, double paddingX, double paddingY, boolean editable, double scale) {
if (horizontalAlignment == null)
throw new NullPointerException("null horizontal alignment");
this.originX = originX;
this.originY = originY;
this.horizontalAlignment = horizontalAlignment;
- this.verticalAlignment = Alignment.BASELINE;
+ this.verticalAlignment = verticalAlignment;
this.borderWidth = borderWidth;
this.editable = editable;
this.paddingX = paddingX;