|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.core.glue.GlueComponentConstant
org.extex.core.glue.GlueComponent
public class GlueComponent
This class provides a means to store floating numbers with an order. If the order is 0 then the length denotes a length in multiples of scaled points. If the order is larger then it denotes some order of infinity.
Examples
123 pt -123 pt 123.456 pt 123.pt .465 pt -.456pt +456pt
| Field Summary | |
|---|---|
static FixedGlueComponent |
MINUS_ONE_FIL
The constant MINUS_ONE_FIL contains the value of -1 fil. |
static long |
ONE
The constant ONE contains the internal representation for 1pt. |
static FixedGlueComponent |
ONE_FI
The constant ONE_FI contains the value of 1 fi. |
static FixedGlueComponent |
ONE_FIL
The constant ONE_FIL contains the value of 1 fil. |
static FixedGlueComponent |
ONE_FILL
The constant ONE_FIL contains the value of 1 fill. |
protected static long |
serialVersionUID
The constant serialVersionUID contains the id for serialization. |
static FixedGlueComponent |
ZERO
The constant ZERO contains the non-stretchable and non-shrinkable value of 0 pt. |
| Fields inherited from class org.extex.core.glue.GlueComponentConstant |
|---|
order, value |
| Constructor Summary | |
|---|---|
GlueComponent()
Creates a new object. |
|
GlueComponent(FixedDimen component)
Creates a new object with a fixed width. |
|
GlueComponent(FixedGlueComponent component)
Creates a new object with a fixed width. |
|
GlueComponent(long value)
Creates a new object with a fixed width. |
|
GlueComponent(long value,
byte order)
Creates a new object with a width with a possibly higher order. |
|
| Method Summary | |
|---|---|
void |
add(FixedGlueComponent g)
Add another GlueCoponent g to this instance. |
FixedGlueComponent |
copy()
Create a copy of this instance with the same order and value. |
void |
multiply(long nom,
long denom)
Multiply the value by an integer fraction. |
void |
negate()
Negate the value. |
void |
set(FixedDimen d)
Setter for the value and order. |
void |
set(FixedGlueComponent d)
Setter for the value and order. |
void |
set(long theValue)
Setter for the value in terms of the internal representation. |
void |
setValue(long val)
Setter for the value. |
void |
subtract(FixedGlueComponent g)
Subtract a Glue component from this glue. |
| Methods inherited from class org.extex.core.glue.GlueComponentConstant |
|---|
eq, ge, getOrder, getValue, gt, le, lt, ne, toString, toString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final long ONE
public static final FixedGlueComponent MINUS_ONE_FIL
public static final FixedGlueComponent ONE_FI
public static final FixedGlueComponent ONE_FIL
public static final FixedGlueComponent ONE_FILL
protected static final long serialVersionUID
public static final FixedGlueComponent ZERO
| Constructor Detail |
|---|
public GlueComponent()
public GlueComponent(FixedGlueComponent component)
component - the fixed valuepublic GlueComponent(FixedDimen component)
component - the fixed valuepublic GlueComponent(long value)
value - the fixed value
public GlueComponent(long value,
byte order)
value - the fixed width or the factororder - the order| Method Detail |
|---|
public void add(FixedGlueComponent g)
g - the GlueCoponent to addpublic FixedGlueComponent copy()
copy in interface FixedGlueComponentcopy in class GlueComponentConstant
public void multiply(long nom,
long denom)
length = length * nom / denom
nom - nominatordenom - denominatorpublic void negate()
public void set(FixedDimen d)
d - the new valuepublic void set(FixedGlueComponent d)
d - the new valuepublic void set(long theValue)
theValue - the new value in units of scaled pointspublic void setValue(long val)
val - the new value in units of scaled pointspublic void subtract(FixedGlueComponent g)
g - the GlueCoponent to subtract
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||