|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.yworks.yfiles.server.graphml.flexio.data.LabelCandidateDescriptor
A simple mutable default implementation of the ILabelCandidateDescriptor
interface.
All properties are read/write in this implementation.
Nested Class Summary | |
static class |
LabelCandidateDescriptor.ConstantDescriptor
|
Field Summary | |
static ILabelCandidateDescriptor |
externalDescriptor
A sharable immutable implementation of the ILabelCandidateDescriptor
interface that has penalties of 1.0 and a profit of 1.0 and yields true
for the ILabelCandidateDescriptor.externalCandidate property. |
static ILabelCandidateDescriptor |
internalDescriptor
A sharable immutable implementation of the ILabelCandidateDescriptor
interface that has penalties of 1.0 and a profit of 1.0 and yields false
for the ILabelCandidateDescriptor.externalCandidate property. |
Constructor Summary | |
LabelCandidateDescriptor()
Creates a new instance of LabelCandidateDescriptor using the default values. |
|
LabelCandidateDescriptor(boolean externalCandidate,
double profit)
Creates a new instance of LabelCandidateDescriptor . |
Method Summary | |
MarkupExtension |
createMarkupExtension(Lookup lookup)
Creates a markup extension that can be used instead of the original class. |
double |
getProfit()
Gets the profit to weigh in if this candidate is chosen. |
boolean |
isExternalCandidate()
Gets a value indicating whether this candidate is deemed an external candidate. |
void |
setExternalCandidate(boolean externalCandidate)
|
void |
setProfit(double profit)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final ILabelCandidateDescriptor externalDescriptor
ILabelCandidateDescriptor
interface that has penalties of 1.0
and a profit of 1.0
and yields true
for the ILabelCandidateDescriptor.externalCandidate
property.
public static final ILabelCandidateDescriptor internalDescriptor
ILabelCandidateDescriptor
interface that has penalties of 1.0
and a profit of 1.0
and yields false
for the ILabelCandidateDescriptor.externalCandidate
property.
Constructor Detail |
public LabelCandidateDescriptor()
LabelCandidateDescriptor
using the default values.
public LabelCandidateDescriptor(boolean externalCandidate, double profit)
LabelCandidateDescriptor
.
externalCandidate
- Indicating whether this candidate is deemed an external candidate.profit
- The profit to weigh in if this candidate is chosen.Method Detail |
public boolean isExternalCandidate()
ILabelCandidateDescriptor
This is mainly for node labels, where the label may be a visual part of the node's internals, but could be used for edge labels, too, if the edge occupies significant amounts of space, visually.
isExternalCandidate
in interface ILabelCandidateDescriptor
public void setExternalCandidate(boolean externalCandidate)
public double getProfit()
ILabelCandidateDescriptor
getProfit
in interface ILabelCandidateDescriptor
public void setProfit(double profit)
public MarkupExtension createMarkupExtension(Lookup lookup)
createMarkupExtension
in interface IMarkupExtensionFactory
lookup
- The lookup that shall be considered when creating the markup extension.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |