cage
Class Embedder
java.lang.Object
cage.Embedder
public abstract class Embedder
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IGNORE_OLD_EMBEDDING
public static final int IGNORE_OLD_EMBEDDING
- See Also:
- Constant Field Values
KEEP_OLD_EMBEDDING
public static final int KEEP_OLD_EMBEDDING
- See Also:
- Constant Field Values
REFINE_OLD_EMBEDDING
public static final int REFINE_OLD_EMBEDDING
- See Also:
- Constant Field Values
Embedder
public Embedder()
setEmbed2D
public abstract void setEmbed2D(java.lang.String[][] embed2D)
setEmbed3D
public abstract void setEmbed3D(java.lang.String[][] embed3D)
setConstant
public abstract void setConstant(boolean isConstant)
isConstant
public abstract boolean isConstant()
setRunDir
public abstract void setRunDir(java.lang.String runDir)
setPath
public abstract void setPath(java.lang.String path)
setIntensityFactor
public abstract void setIntensityFactor(float factor)
setMode
public abstract void setMode(int mode)
getMode
public abstract int getMode()
getEmbed2DNew
public abstract java.lang.String[][] getEmbed2DNew()
getEmbed3DNew
public abstract java.lang.String[][] getEmbed3DNew()
getEmbed3DRefine
public abstract java.lang.String[][] getEmbed3DRefine()
embed2D
public abstract void embed2D(EmbeddableGraph graph)
throws java.lang.Exception
- Throws:
java.lang.Exception
embed3D
public abstract void embed3D(EmbeddableGraph graph)
throws java.lang.Exception
- Throws:
java.lang.Exception
reembed2D
public abstract void reembed2D(EmbeddableGraph graph)
throws java.lang.Exception
- Throws:
java.lang.Exception
getDiagnosticOutput
public abstract java.lang.String getDiagnosticOutput()
abort
public abstract void abort()
reembed2DRequired
public boolean reembed2DRequired(EmbeddableGraph graph,
float x,
float y)
- Returns whether the graph needs to be reembedded for the point
(x, y) to lie in the outer face or not. This method
also stores the new outer face in case the graph needs to be reembedded.
(TODO: document this last fact better.)
- Parameters:
graph
- The graph for which the embedding needs to be consideredx
- The x coordinate of the pointy
- The y coordinate of the point
- Returns:
- false if the point (x, y) lies in
the outer face, true otherwise.