org.eclipse.hyades.trace.views.internal.fragment
Class ExpansionRange
java.lang.Object
org.eclipse.hyades.trace.views.internal.fragment.ExpansionRange
public class ExpansionRange
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
NONE
public static final int NONE
- See Also:
- Constant Field Values
CONTAINMENT
public static final int CONTAINMENT
- See Also:
- Constant Field Values
REFERENCE
public static final int REFERENCE
- See Also:
- Constant Field Values
createExpansionRange
public static ExpansionRange createExpansionRange(Expansion base,
int offset,
int size)
getSize
public int getSize(boolean includeReferencedParents)
getDepth
public int getDepth(Expansion exp)
clearCache
public void clearCache()
getStartExpansion
public Expansion getStartExpansion()
getLastIncludedExpansion
public Expansion getLastIncludedExpansion()
getMaxMove
public int getMaxMove(boolean forward)
getMaxForwardMove
public int getMaxForwardMove()
getMaxBackwardMove
public int getMaxBackwardMove()
getStartOffset
public int getStartOffset()
limitByMaxMove
public int limitByMaxMove(int num)
moveToStart
public ExpansionRange moveToStart(int newStart,
boolean preservingSize)
getInterection
public ExpansionRange getInterection(ExpansionRange other)
getRelation
public int getRelation(Expansion exp)
getBase
public Expansion getBase()
getNumParentRefs
public int getNumParentRefs()
getStartIndex
public int getStartIndex(Expansion exp)
getEndIndex
public int getEndIndex(Expansion exp)
getIndex
public int getIndex(Expansion exp)
getDirectChildCount
public int getDirectChildCount(Expansion exp)
getDirectChildren
public Expansion[] getDirectChildren(Expansion exp,
boolean expanded)
hasDirectChildren
public boolean hasDirectChildren(Expansion exp,
boolean expanded)
adjustOnExpand
public ExpansionRange adjustOnExpand(Expansion exp)
adjustOnCollapse
public ExpansionRange adjustOnCollapse(Expansion exp)
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
assertValid
public void assertValid()
expand
public ExpansionRange expand(Expansion exp,
java.lang.Object data,
int childCount)
collapse
public ExpansionRange collapse(Expansion exp,
boolean preserveChildInfo)