com.yworks.yfiles.server.graphml.flexio.data.markup
Class LabelCandidateDescriptorExtension

java.lang.Object
  extended bycom.yworks.yfiles.server.graphml.flexio.MarkupExtension
      extended bycom.yworks.yfiles.server.graphml.flexio.data.markup.LabelCandidateDescriptorExtension

public class LabelCandidateDescriptorExtension
extends MarkupExtension

MarkupExtension for LabelCandidateDescriptor.


Constructor Summary
LabelCandidateDescriptorExtension()
           
LabelCandidateDescriptorExtension(boolean externalCandidate, double profit)
          Creates a new instance of LabelCandidateDescriptor.
 
Method Summary
 double getProfit()
           
 boolean isExternalCandidate()
           
 java.lang.Object provideValue(Lookup lookup)
          Implementations of subclasses return an object that had been specified as target attribute of the markup extension.
 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
 

Constructor Detail

LabelCandidateDescriptorExtension

public LabelCandidateDescriptorExtension()

LabelCandidateDescriptorExtension

public LabelCandidateDescriptorExtension(boolean externalCandidate,
                                         double profit)
Creates a new instance of LabelCandidateDescriptor.

Parameters:
externalCandidate - Indicating whether this candidate is deemed an external candidate.
profit - The profit to weigh in if this candidate is chosen.
Method Detail

isExternalCandidate

public boolean isExternalCandidate()

setExternalCandidate

public void setExternalCandidate(boolean externalCandidate)

getProfit

public double getProfit()

setProfit

public void setProfit(double profit)

provideValue

public java.lang.Object provideValue(Lookup lookup)
Implementations of subclasses return an object that had been specified as target attribute of the markup extension.

Specified by:
provideValue in class MarkupExtension
Parameters:
lookup - An object that can provide additional functionality for the markup extension.
Returns:
The object value to set on the property where the extension is applied.


Copyright © 2000-2013 yWorks GmbH. All rights reserved