summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/client/GitblitClient.java
Commit message (Expand)AuthorAgeFilesLines
* Fix NPE in GitblitClientJames Moger2014-06-131-3/+5
* Trim trailing whitespace and organize importsJames Moger2013-09-301-16/+16
* Change default access restriction to PUSHJames Moger2013-09-271-1/+1
* Reorganized to Apache Standard Directory Layout & integrated MoxieJames Moger2013-03-271-0/+717
yout/inline/InlineSpace.java?h=Temp_PDF_in_PDF&id=01a159e579254407dfed6c9b7e7c9f430080d201'>treecommitdiffstats
path: root/src/org/apache/fop/layout/inline/InlineSpace.java
blob: 530f07b2833ab111921af8b7404537778c769a0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/* $Id$
 * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
 * For details on use and redistribution please refer to the
 * LICENSE file included with these sources.
 */

package org.apache.fop.layout.inline;

import org.apache.fop.render.Renderer;
import org.apache.fop.layout.*;

public class InlineSpace extends Space {
    private int size; // in millipoints
    private boolean resizeable = true; //to disallow size changes during justification of a line

    // Textdecoration
    protected boolean underlined = false;
    protected boolean overlined = false;
    protected boolean lineThrough = false;
     
    
    public InlineSpace(int amount) {
	this.size = amount;
    }

    public InlineSpace(int amount, boolean resizeable) {
    this.resizeable = resizeable;
	this.size = amount;
    }

    /**
     * @param ul true if text should be underlined
     */
    public void setUnderlined(boolean ul) {
        this.underlined = ul;
    }

    public boolean getUnderlined() {
        return this.underlined;
    }

    public void setOverlined(boolean ol) {
       this.overlined = ol;
    }

    public boolean getOverlined() {
        return this.overlined;
    }

    public void setLineThrough(boolean lt) {
        this.lineThrough = lt;
    }

    public boolean getLineThrough() {
        return this.lineThrough;
     }
 
    public int getSize() {
	return size;
    }

    public void setSize(int amount) {
	this.size = amount;
    }

    public boolean getResizeable() {
      return resizeable;
    }

    public void setResizeable(boolean resizeable) {
      this.resizeable = resizeable;
    }

    public void render(Renderer renderer) {
	renderer.renderInlineSpace(this);
    }
}