|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ceryle.ui.graph.Composer
public class Composer
An processor class for to extract the spatial structure from a graph, and from this organize the composition of the selected Occurrences of those Topics into an XHTML document.
| Field Summary | |
|---|---|
static int |
BIT_divmark
Bitwise composer settings. |
static int |
BIT_docfoot
Bitwise composer settings. |
static int |
BIT_dochead
Bitwise composer settings. |
static int |
BIT_doctoc
Bitwise composer settings. |
static int |
BIT_fragment
Bitwise composer settings. |
static int |
BIT_none
Bitwise composer settings. |
static int |
BIT_sectfoot
Bitwise composer settings. |
static int |
BIT_secthead
Bitwise composer settings. |
static int |
BIT_sectnums
Bitwise composer settings. |
static int |
BIT_secttoc
Bitwise composer settings. |
static int |
BIT_separate
Bitwise composer settings. |
protected ColorLookupTable |
m_clut
The current color lookup table (CLUT). |
protected static int |
m_fuzzyX
A value based on a ratio of a graph grid cell size, used in calculating horizontal fuzziness. |
protected static int |
m_fuzzyY
A value based on the vertical height of a TNode, used in calculating vertical fuzziness. |
static String |
m_idPfx
A String used as the prefix of auto-generated IDs. |
int |
m_sortMode
|
protected org.ceryle.ui.graph.Composer.TNodeLoc |
m_topleft
The top-left TNodeLoc of the graph, the starting position for traversal. |
static int |
m_topLevel
Top level heading level. |
static String |
NL
|
protected ProjectView |
pv
|
static int |
settings
Bitwise composer settings. |
static int |
SORT_X
|
static int |
SORT_XY
|
static int |
SORT_Y
|
static int |
STATUS_COMPLETE
|
static int |
STATUS_FAIL
|
static int |
STATUS_LOCATED
|
static int |
STATUS_LOCATING
|
static int |
STATUS_NONE
|
static int |
STATUS_OPENED
|
static int |
STATUS_OPENING
|
static int |
STATUS_PREPARED
|
static int |
STATUS_PREPARING
|
static int |
STATUS_WARN
|
static int |
STATUS_WRITING
|
static int |
STATUS_WRITTEN
|
static String |
stylesheetSystemId
|
protected TMLayoutPanel |
tmlp
|
| Constructor Summary | |
|---|---|
Composer(ProjectView pview,
TMLayoutPanel tmlpanel)
Constructor for a Composer, with the String identifier for the datatype supported by this Composer. |
|
| Method Summary | |
|---|---|
void |
addCompositor(Topic topic)
Adds a new Compositor provided with its Topic. |
void |
classify()
Classify the visible nodes of the current graph. |
void |
compose()
Compose and write the composed document to a file by calling the Compositors to deliver their Readers in sequence. |
protected static boolean |
fuzzyXEq(int x1,
int x2)
Returns true if the two x values are within the horizontal fuzzy limits of being equal, calculated on the graph grid square size. |
protected static boolean |
fuzzyYEq(int y1,
int y2)
Returns true if the two y values are within the vertical fuzzy limits of being equal, generally plus or minus the height of a graph node. |
boolean |
getSetting(int setting)
Returns the specific bitwise composer setting as a boolean value. |
Color |
getStatusColor(int n)
Returns the Color corresponding to the status number. |
String |
getStatusName(int n)
Returns the name (description) corresponding to the status number. |
void |
prepare()
Prepare the current Compositors', enabling their Readers. |
void |
processSequence()
Compose a document based on the existing node sequence. |
void |
refresh()
Refreshes the UI according to the current status. |
void |
setSetting(int setting,
boolean value)
Set the specific bitwise composer setting to the boolean value. |
void |
statusChanged(Compositor comp)
Invoked to indicate a change in status of and by the provided Compositor. |
protected void |
writeDocTOC(Writer out)
Write the document-level table of contents. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int BIT_none
public static final int BIT_separate
public static final int BIT_dochead
public static final int BIT_docfoot
public static final int BIT_doctoc
public static final int BIT_secthead
public static final int BIT_sectfoot
public static final int BIT_secttoc
public static final int BIT_divmark
public static final int BIT_sectnums
public static final int BIT_fragment
public static final int STATUS_FAIL
public static final int STATUS_WARN
public static final int STATUS_NONE
public static final int STATUS_LOCATING
public static final int STATUS_LOCATED
public static final int STATUS_OPENING
public static final int STATUS_OPENED
public static final int STATUS_PREPARING
public static final int STATUS_PREPARED
public static final int STATUS_WRITING
public static final int STATUS_WRITTEN
public static final int STATUS_COMPLETE
public static int m_topLevel
public static String m_idPfx
protected static int m_fuzzyX
protected static int m_fuzzyY
protected org.ceryle.ui.graph.Composer.TNodeLoc m_topleft
public static int settings
protected ColorLookupTable m_clut
protected TMLayoutPanel tmlp
protected ProjectView pv
public static final String NL
public static String stylesheetSystemId
public static final int SORT_XY
public static final int SORT_X
public static final int SORT_Y
public int m_sortMode
| Constructor Detail |
|---|
public Composer(ProjectView pview,
TMLayoutPanel tmlpanel)
pview - the parent ProjectViewtmlpanel - the TMLayoutPanel this Composer supports| Method Detail |
|---|
public void setSetting(int setting,
boolean value)
public boolean getSetting(int setting)
public void processSequence()
public void addCompositor(Topic topic)
public void refresh()
public void statusChanged(Compositor comp)
public Color getStatusColor(int n)
public String getStatusName(int n)
public void prepare()
public void compose()
protected void writeDocTOC(Writer out)
throws IOException
IOExceptionpublic void classify()
protected static boolean fuzzyXEq(int x1,
int x2)
protected static boolean fuzzyYEq(int y1,
int y2)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||