|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcage.GeneratorInfo
public abstract class GeneratorInfo
Abstract class that represents the settings for a CaGe generator.
Field Summary | |
---|---|
static int |
ALL_EXPERT_MODES
The all expert mode constant. |
static int |
EMBED_EXPERT
The embed expert mode constant. |
static int |
GENERATOR_EXPERT
The generator expert mode constant. |
static int |
NO_EXPERT_MODE
The no expert modes constant. |
Constructor Summary | |
---|---|
GeneratorInfo()
|
Method Summary | |
---|---|
static int |
createExpertMode(int inclusion,
int exclusion)
Creates an expert mode that both stores the included modes as the explicitly excluded modes. |
boolean |
expertModeContains(int modes,
boolean defaultIncluded)
TODO |
boolean |
expertModeExcludes(int modes)
Returns whether the current expert modes exclude the given modes. |
boolean |
expertModeIncludes(int modes)
Returns whether the current expert modes include the given modes. |
abstract ElementRule |
getElementRule()
Returns the ElementRule to be used for graphs from this
generator. |
abstract Embedder |
getEmbedder()
Returns the embedder to be used for this generator. |
int |
getExcludedExpertModes()
Returns the excluded expert modes. |
abstract int |
getExpertMode()
Returns the expert mode of this generator. |
abstract java.lang.String |
getFilename()
Returns the filename of the output file. |
abstract java.lang.String[][] |
getGenerator()
Returns the generator. |
java.lang.String |
getGeneratorName()
Returns the name of the generator. |
int |
getIncludedExpertModes()
Returns the included expert modes. |
abstract int |
getMaxFacesize()
Returns the maximum size of a face in the graphs from this generator. |
abstract boolean |
isReembed2DEnabled()
Returns whether the 2D embedding can be reembedded with another face as outer face. |
abstract void |
setEmbedder(Embedder embedder)
Sets the embedder to be used for this generator. |
abstract void |
setGenerator(java.lang.String[][] generator)
Sets the generator. |
void |
setGeneratorName(java.lang.String generatorName)
Sets the name of the generator |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NO_EXPERT_MODE
public static final int GENERATOR_EXPERT
public static final int EMBED_EXPERT
public static final int ALL_EXPERT_MODES
Constructor Detail |
---|
public GeneratorInfo()
Method Detail |
---|
public abstract java.lang.String[][] getGenerator()
String
s. Each array of String
s represents
a command and the different options needed for this command. These
commands and their options are then piped together in the order that
the arrays are organized in the array of arrays.
String
s representing the generator.public abstract void setGenerator(java.lang.String[][] generator)
String
s. Each array of String
s represents
a command and the different options needed for this command. These
commands and their options are then piped together in the order that
the arrays are organized in the array of arrays.
generator
- An array of arrays of String
s representing the
generator.public abstract Embedder getEmbedder()
public abstract void setEmbedder(Embedder embedder)
embedder
- The embedder for this generator.EmbedFactory
public abstract java.lang.String getFilename()
public abstract int getMaxFacesize()
public abstract boolean isReembed2DEnabled()
TwoView
viewer's ability to react
to mouse clicks inside a face, asking for a new embedding in which this
face becomes the exterior one.
public abstract ElementRule getElementRule()
ElementRule
to be used for graphs from this
generator.
ElementRule
object.public abstract int getExpertMode()
createExpertMode(int, int)
public void setGeneratorName(java.lang.String generatorName)
generatorName
- The generator name.getGeneratorName()
public java.lang.String getGeneratorName()
setGeneratorName(java.lang.String)
public static int createExpertMode(int inclusion, int exclusion)
inclusion
- exclusion
-
public int getIncludedExpertModes()
getExpertMode()
is that this method only returns the included modes and thus returns one of
NO_EXPERT_MODE
, GENERATOR_EXPERT
, EMBED_EXPERT
and
ALL_EXPERT_MODES
.
NO_EXPERT_MODE
, GENERATOR_EXPERT
, EMBED_EXPERT
or ALL_EXPERT_MODES
, depending on which mode is set.public int getExcludedExpertModes()
NO_EXPERT_MODE
, GENERATOR_EXPERT
, EMBED_EXPERT
and
ALL_EXPERT_MODES
. For this method to work correct and keep working
correct an expert mode should be created using createExpertMode(int,int)
.
NO_EXPERT_MODE
, GENERATOR_EXPERT
, EMBED_EXPERT
or ALL_EXPERT_MODES
, depending on which modes are excluded.public boolean expertModeIncludes(int modes)
modes
- The modes which need to be tested.
public boolean expertModeExcludes(int modes)
modes
- The modes which need to be tested.
public boolean expertModeContains(int modes, boolean defaultIncluded)
modes
- defaultIncluded
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |