All Packages Class Hierarchy This Package Previous Next Index
Class aioli.path.MBPath
java.lang.Object
|
+----aioli.path.MBPath
- public class MBPath
- extends Object
Implements modification path on Glyph
-
MBPath()
- Creates an empty path
-
MBPath(int)
- Creates an atomic path
-
MBPath(int, GlyphInterface)
- Creates an atomic path
-
MBPath(int, MBPath)
- Creates a move path
-
MBPath(IPath, int)
- Creates a move path
-
add(int)
- Adds a move to the path
-
add(int, MBPath)
- Adds a subpath to the path
-
apply(GlyphInterface)
- Applies a path to a tree
-
change(GlyphInterface)
- Creates an atomic change path
-
changep()
- Is it a change path?
-
copy(MBPath)
- Copies a path
-
deletep()
- Is it a delete path?
-
down(int)
- Returns the subpath correspoding to a given move
-
emptyp()
- Is it an empty path?
-
getGlyph()
- Gets the glyph of the path
-
getLength()
- Returns the number of subpaths
-
getMoves()
- Returns the move of the path, null if it is not a move path
-
getPaths()
- Returns the immediate subpath
-
getType()
- Gets the type of the path
-
getType(int)
- Sets the type of the path
-
insertp()
- Is it an insertion path?
-
merge(MBPath)
- Merges a path
-
move()
- Creates an atomic move path
-
movep()
- Is it a move path?
-
normalize()
- Normalizes a path
-
rDown(int)
- Returns the subpath correspoding to a given negative move
-
setGlyph(GlyphInterface)
- Sets the tree of the path
-
toPath()
-
-
toPath(Path)
-
-
toString()
- Returns a string represenation of a modification path
-
toString1(String)
-
MBPath
public MBPath()
- Creates an empty path
MBPath
public MBPath(int type)
- Creates an atomic path
- Parameters:
- type - the tag of the path
MBPath
public MBPath(int type,
GlyphInterface format)
- Creates an atomic path
- Parameters:
- type - the tag of the path
- format - the glyph of the path
MBPath
public MBPath(int rank,
MBPath path)
- Creates a move path
- Parameters:
- rank - the move
- path - the subpath
MBPath
public MBPath(IPath path,
int type)
- Creates a move path
- Parameters:
- path - the conductor of the path
- endp - the subpath
change
public static MBPath change(GlyphInterface format)
- Creates an atomic change path
- Parameters:
- format - the new glyph
move
public static MBPath move()
- Creates an atomic move path
insertp
public boolean insertp()
- Is it an insertion path?
changep
public boolean changep()
- Is it a change path?
deletep
public boolean deletep()
- Is it a delete path?
movep
public boolean movep()
- Is it a move path?
merge
public void merge(MBPath path)
- Merges a path
- Parameters:
- path - the path to be added
add
public MBPath add(int move)
- Adds a move to the path
- Parameters:
- move - the move to be added
add
public void add(int move,
MBPath path)
- Adds a subpath to the path
- Parameters:
- move - the move to be added
- path - the subpath to be added
normalize
public void normalize()
- Normalizes a path
emptyp
public boolean emptyp()
- Is it an empty path?
getLength
public int getLength()
- Returns the number of subpaths
getMoves
public int[] getMoves()
- Returns the move of the path, null if it is not a move path
getPaths
public MBPath[] getPaths()
- Returns the immediate subpath
getType
public void getType(int type)
- Sets the type of the path
- Parameters:
- type - the new type
getType
public int getType()
- Gets the type of the path
setGlyph
public void setGlyph(GlyphInterface format)
- Sets the tree of the path
- Parameters:
- format - the new glyph
getGlyph
public GlyphInterface getGlyph()
- Gets the glyph of the path
down
public MBPath down(int move)
- Returns the subpath correspoding to a given move
- Parameters:
- move - the move relative to the new tree
rDown
public MBPath rDown(int move)
- Returns the subpath correspoding to a given negative move
- Parameters:
- move - the negative move, relative to the new tree
copy
public void copy(MBPath path)
- Copies a path
- Parameters:
- path - the path to be copied
apply
public GlyphInterface apply(GlyphInterface format)
- Applies a path to a tree
- Parameters:
- format - the format to which the path is applied
toPath
public Path toPath()
toPath
public void toPath(Path path)
toString
public String toString()
- Returns a string represenation of a modification path
- Overrides:
- toString in class Object
toString1
public String toString1(String str)
All Packages Class Hierarchy This Package Previous Next Index