com.yworks.yfiles.server.graphml.flexio.data
Class LabelCandidateDescriptor.ConstantDescriptor

java.lang.Object
  extended bycom.yworks.yfiles.server.graphml.flexio.data.LabelCandidateDescriptor.ConstantDescriptor
All Implemented Interfaces:
ILabelCandidateDescriptor, IMarkupExtensionFactory
Enclosing class:
LabelCandidateDescriptor

public static class LabelCandidateDescriptor.ConstantDescriptor
extends java.lang.Object
implements ILabelCandidateDescriptor, IMarkupExtensionFactory


Constructor Summary
LabelCandidateDescriptor.ConstantDescriptor(boolean isExternal)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LabelCandidateDescriptor.ConstantDescriptor

public LabelCandidateDescriptor.ConstantDescriptor(boolean isExternal)
Method Detail

isExternalCandidate

public boolean isExternalCandidate()
Gets a value indicating whether this candidate is deemed an external candidate.

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.

Specified by:
isExternalCandidate in interface ILabelCandidateDescriptor
Returns:
A value indicating whether this candidate is deemed an external candidate.

getProfit

public double getProfit()
Gets the profit to weigh in if this candidate is chosen.

Specified by:
getProfit in interface ILabelCandidateDescriptor
Returns:
The profit to weigh in if this candidate is chosen.

createMarkupExtension

public MarkupExtension createMarkupExtension(Lookup lookup)
Creates a markup extension that can be used instead of the original class.

Specified by:
createMarkupExtension in interface IMarkupExtensionFactory
Parameters:
lookup - The lookup that shall be considered when creating the markup extension.


Copyright © 2000-2007 yWorks GmbH. All rights reserved