1 51 package org.apache.fop.layout.inline; 52 53 import org.apache.fop.render.Renderer; 54 import org.apache.fop.layout.*; 55 56 public class InlineSpace extends Space { 57 private int size; private boolean resizeable = 59 true; private boolean eatable = false; 62 63 protected boolean underlined = false; 65 protected boolean overlined = false; 66 protected boolean lineThrough = false; 67 68 69 public InlineSpace(int amount) { 70 this.size = amount; 71 } 72 73 public InlineSpace(int amount, boolean resizeable) { 74 this.resizeable = resizeable; 75 this.size = amount; 76 } 77 78 81 public void setUnderlined(boolean ul) { 82 this.underlined = ul; 83 } 84 85 public boolean getUnderlined() { 86 return this.underlined; 87 } 88 89 public void setOverlined(boolean ol) { 90 this.overlined = ol; 91 } 92 93 public boolean getOverlined() { 94 return this.overlined; 95 } 96 97 public void setLineThrough(boolean lt) { 98 this.lineThrough = lt; 99 } 100 101 public boolean getLineThrough() { 102 return this.lineThrough; 103 } 104 105 public int getSize() { 106 return size; 107 } 108 109 public void setSize(int amount) { 110 this.size = amount; 111 } 112 113 public boolean getResizeable() { 114 return resizeable; 115 } 116 117 public void setResizeable(boolean resizeable) { 118 this.resizeable = resizeable; 119 } 120 121 125 public void setEatable(boolean eatable) { 126 this.eatable = eatable; 127 } 128 129 public boolean isEatable() { 130 return eatable; 131 } 132 133 public void render(Renderer renderer) { 134 renderer.renderInlineSpace(this); 135 } 136 137 } 138 | Popular Tags |