|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.contribution.visualiser.core.Stripe
The stripe class represents a mark on a bar, stripes can be any depth and be of multiple 'kinds' (kinds map to colors).
Constructor Summary | |
Stripe()
Default constructor |
|
Stripe(IMarkupKind k,
int i)
Stripe constructor when the stripe is of the minimum depth (1). |
|
Stripe(IMarkupKind k,
int o,
int d)
Stripe constructor where the kind, offset and depth can be specified. |
|
Stripe(java.util.List ks,
int o,
int d)
Stripe constructor where the kinds, offset and depth can be specified. |
Method Summary | |
void |
addKinds(java.util.List list)
Add the given kinds to this stripe |
int |
compareTo(java.lang.Object other)
Compare this Stripe to another Object, which should be a Stripe. |
boolean |
equals(java.lang.Object that)
Returns true if the given Object is equal to this stripe |
int |
getDepth()
Get this Stripe's depth |
java.util.List |
getKinds()
Getter for the kinds of this stripe. |
int |
getOffset()
Get the offset for this Stripe |
java.lang.String |
getToolTip()
Get the tooltip for this Stripe, which is a list of its kinds |
int |
hashCode()
Override hashCode because we have overridden equals. |
boolean |
hasKind(IMarkupKind kind)
Returns true if this Stripe has the given kind |
void |
setDepth(int i)
Set the depth for this Stripe |
void |
setKinds(java.util.List list)
Set the list of kinds for this Stripe to the given argument |
void |
setOffset(int offset)
Set the offset for this Stripe |
java.lang.String |
stringifyKinds()
Get a string representation of the kinds in this Stripe |
java.lang.String |
toString()
Get a String representation of this Stripe |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Stripe()
public Stripe(IMarkupKind k, int i)
k
- The kind of stripei
- The offset down the bar where the stripe startspublic Stripe(IMarkupKind k, int o, int d)
k
- The kind of the stripeo
- The offset down the bar where the stripe startsd
- The depth of the stripepublic Stripe(java.util.List ks, int o, int d)
ks
- The kinds of the stripe, should be stringso
- The offset down the bar where the stripe startsd
- The depth of the stripeMethod Detail |
public boolean equals(java.lang.Object that)
that
-
public int hashCode()
public java.util.List getKinds()
public void addKinds(java.util.List list)
list
- public void setKinds(java.util.List list)
list
- public int getOffset()
public int getDepth()
public java.lang.String toString()
public java.lang.String stringifyKinds()
public void setOffset(int offset)
offset
- public void setDepth(int i)
i
- public java.lang.String getToolTip()
public boolean hasKind(IMarkupKind kind)
kind
-
public int compareTo(java.lang.Object other)
compareTo
in interface java.lang.Comparable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |