public class MarginConfiguration extends Object
Copyright (c) 2020 xsx All Rights Reserved. x-easypdf-pdfbox is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. See the Mulan PSL v2 for more details.
Modifier and Type | Field and Description |
---|---|
protected Float |
marginBottom
下边距
|
protected Float |
marginLeft
左边距
|
protected Float |
marginRight
右边距
|
protected Float |
marginTop
上边距
|
Constructor and Description |
---|
MarginConfiguration()
无参构造
|
MarginConfiguration(MarginConfiguration configuration)
有参构造
|
Modifier and Type | Method and Description |
---|---|
void |
init()
初始化
|
void |
init(MarginConfiguration configuration)
初始化
|
void |
setMargin(float margin)
设置边距(上下左右)
|
void |
setMarginBottom(float margin)
设置下边距
|
void |
setMarginLeft(float margin)
设置左边距
|
void |
setMarginRight(float margin)
设置右边距
|
void |
setMarginTop(float margin)
设置上边距
|
protected Float marginTop
protected Float marginBottom
protected Float marginLeft
protected Float marginRight
public MarginConfiguration()
public MarginConfiguration(MarginConfiguration configuration)
configuration
- 配置public void setMargin(float margin)
margin
- 边距public void setMarginTop(float margin)
margin
- 边距public void setMarginBottom(float margin)
margin
- 边距public void setMarginLeft(float margin)
margin
- 边距public void setMarginRight(float margin)
margin
- 边距public void init()
public void init(MarginConfiguration configuration)
configuration
- 配置Copyright © 2024. All rights reserved.