org.eclipse.hyades.trace.views.internal.fragment
Class Expansion
java.lang.Object
org.eclipse.hyades.trace.views.internal.fragment.Expansion
- All Implemented Interfaces:
- java.lang.Comparable, IElementInfo
- Direct Known Subclasses:
- RootExpansion
public class Expansion
- extends java.lang.Object
- implements IElementInfo, java.lang.Comparable
|
Method Summary |
void |
collapse(boolean preserveChildInfo)
|
int |
compareTo(java.lang.Object o)
|
boolean |
equals(java.lang.Object obj)
|
void |
expand()
|
Expansion |
expandChild(int elementIndex,
java.lang.Object childElement,
int childSize)
|
int |
getAllChildSize(boolean checkExpanded)
|
Expansion |
getChildExpansionByOffset(int offset,
boolean generateOutOfRangeMarker)
|
Expansion |
getCommonRelative(Expansion other)
|
static Expansion |
getCommonRelative(Expansion exp1,
Expansion exp2)
|
java.lang.Object |
getData()
|
int |
getDepth()
|
Expansion |
getDirectChildByIndex(int index,
boolean generateOutOfRangeMarker)
|
int |
getDirectChildCount()
|
Expansion[] |
getDirectChildren()
|
Expansion[] |
getDirectChildren(boolean expanded)
|
Expansion[] |
getDirectChildren(int startIndex,
int endIndex,
boolean expanded)
|
int |
getDirectChildSize(boolean checkExpanded)
|
Expansion |
getDirectExistingChildByIndex(int index)
|
int |
getIndex()
|
Expansion |
getParent()
|
Expansion[] |
getParents(boolean includeThis,
boolean bottomUp)
|
Expansion |
getRelativeExpansion(int offset)
|
RootExpansion |
getRoot()
|
int |
getRootIndex()
|
boolean |
hasChildExpansions()
|
boolean |
hasDirectChildren(boolean expanded)
|
boolean |
hasDirectChildren(int startIndex,
int stopIndex,
boolean expanded)
|
boolean |
hasDirectChildren(java.util.SortedMap map,
boolean expanded)
|
int |
hashCode()
hashCode and equals behavior:
same virtual expansion may be presented with different objects
this is NOT true for "real" objects |
boolean |
isChildOf(Expansion exp)
|
boolean |
isDirectChildExpanded(int index)
|
boolean |
isExpanded()
|
boolean |
isOutOfRangeMarker()
|
boolean |
isParentOf(Expansion exp)
|
boolean |
isRoot()
|
boolean |
isVirtual()
|
boolean |
isVisible()
|
void |
materialize(java.lang.Object element,
int childSize,
boolean expand)
|
void |
setData(java.lang.Object data)
|
org.eclipse.jface.viewers.TreePath |
toTreePath()
|
void |
virtualize()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
expandChild
public Expansion expandChild(int elementIndex,
java.lang.Object childElement,
int childSize)
getData
public java.lang.Object getData()
- Specified by:
getData in interface IElementInfo
getCommonRelative
public Expansion getCommonRelative(Expansion other)
getCommonRelative
public static Expansion getCommonRelative(Expansion exp1,
Expansion exp2)
isVirtual
public boolean isVirtual()
getDepth
public int getDepth()
materialize
public void materialize(java.lang.Object element,
int childSize,
boolean expand)
collapse
public void collapse(boolean preserveChildInfo)
virtualize
public void virtualize()
expand
public void expand()
getDirectChildSize
public int getDirectChildSize(boolean checkExpanded)
getDirectChildCount
public int getDirectChildCount()
- Specified by:
getDirectChildCount in interface IElementInfo
getAllChildSize
public int getAllChildSize(boolean checkExpanded)
hasChildExpansions
public boolean hasChildExpansions()
hasDirectChildren
public boolean hasDirectChildren(boolean expanded)
hasDirectChildren
public boolean hasDirectChildren(int startIndex,
int stopIndex,
boolean expanded)
hasDirectChildren
public boolean hasDirectChildren(java.util.SortedMap map,
boolean expanded)
getDirectExistingChildByIndex
public Expansion getDirectExistingChildByIndex(int index)
isRoot
public boolean isRoot()
getRoot
public RootExpansion getRoot()
getRootIndex
public int getRootIndex()
getDirectChildByIndex
public Expansion getDirectChildByIndex(int index,
boolean generateOutOfRangeMarker)
getChildExpansionByOffset
public Expansion getChildExpansionByOffset(int offset,
boolean generateOutOfRangeMarker)
isChildOf
public boolean isChildOf(Expansion exp)
isParentOf
public boolean isParentOf(Expansion exp)
getParent
public Expansion getParent()
getIndex
public int getIndex()
- Specified by:
getIndex in interface IElementInfo
isOutOfRangeMarker
public boolean isOutOfRangeMarker()
getRelativeExpansion
public Expansion getRelativeExpansion(int offset)
getParents
public Expansion[] getParents(boolean includeThis,
boolean bottomUp)
isExpanded
public boolean isExpanded()
isVisible
public boolean isVisible()
getDirectChildren
public Expansion[] getDirectChildren()
getDirectChildren
public Expansion[] getDirectChildren(int startIndex,
int endIndex,
boolean expanded)
isDirectChildExpanded
public boolean isDirectChildExpanded(int index)
getDirectChildren
public Expansion[] getDirectChildren(boolean expanded)
hashCode
public int hashCode()
- hashCode and equals behavior:
same virtual expansion may be presented with different objects
this is NOT true for "real" objects
- Overrides:
hashCode in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
toTreePath
public org.eclipse.jface.viewers.TreePath toTreePath()
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo in interface java.lang.Comparable
setData
public void setData(java.lang.Object data)