Ipe documents can use symbolic attributes, such as 'normal', 'fat', or 'thin' for line thickness, or 'red', 'navy', 'turquoise' for color, as well as absolute attributes such as (0.5,0.5,0.5) for medium gray. To avoid storing these very common values hundreds of times, IpeRepository keeps a repository of all the non-scalar attribute values in the document. Inside IpeObject's attributes are represented as integer indices into the repository.
There are currently the following symbolic attributes:
|
Constructor.
|
|
Return string with given index. Both positive (dash style) and negativ (symbolic name) index is possible. |
|
Return color with given index.
|
|
Return value with given index.
|
|
Return vector with given index.
|
|
Return value with given index.
|
|
Lookup a color (add it if it doesn't exist yet), and return index.
|
|
Lookup value (add it if it doesn't exist yet), and return index.
|
|
Lookup vector (add it if it doesn't exist yet), and return index.
|
|
Lookup matrix (add it if it doesn't exist yet), and return index.
|
|
Create an IpeAttribute representing the color described. Empty string creates null color, string starting with a letter creates a symbolic color (includes special case "void"), otherwise absolute color. |
|
Construct absolute value (which is a string).
|
|
Construct dash style attribute from string. Empty string creates null value, string starting with '[' creates an absolute dash style, otherwise symbolic dash style (including the special case "solid"). |
|
Construct text size attribute from string. Empty string creates null value, string starting with digit creates an numeric absolute value, string starting with letter creates symbolic text size, anything else creates absolute (string) text size. |
|
Construct scalar attribute from string. Empty string creates null value, string starting with non-letter creates an absolute value, string starting with letter creates symbolic value. |
|
Construct vector attribute from string. Empty string creates null value, string starting with non-letter creates an absolute value, string starting with letter creates symbolic value. |
|
Construct vector attribute from string. Empty string creates null value, string starting with non-letter creates an absolute value, string starting with letter creates symbolic value. |
|
Construct symbolic attribute from string. Empty string creates null value, anything else creates symbolic value. |
|
Return string representation of attribute (symbolic or absolute).
|