public class DefaultLabelPolicy extends AbstractPolicy implements ILabelPolicy
ILabelPolicy.| Constructor and Description |
|---|
DefaultLabelPolicy() |
| Modifier and Type | Method and Description |
|---|---|
DateFormat |
getDateFormatter()
Returns the date formatter object that gets used by the policy to convert
time points (millis) to strings.
|
String |
getLabel(IRelationship relationship,
IGanttChartModel model,
LabelType type)
Returns a label for the given relationship object (usually a summary of
the relationship meaning).
|
String |
getLabel(TimelineObjectPath path,
IGanttChartModel model,
LabelType type)
Returns various types of labels for a given timeline object.
|
boolean |
isLabelTypeVisible(TimelineObjectPath path,
IGanttChartModel model,
LabelType type)
Determines whether or not a certain type of label will be shown for the
given timeline object or not.
|
void |
setDateFormatter(DateFormat format)
Sets the date formatter object that gets used by the policy to convert
time points (millis) to strings.
|
assertClasspublic boolean isLabelTypeVisible(TimelineObjectPath path, IGanttChartModel model, LabelType type)
ILabelPolicyisLabelTypeVisible in interface ILabelPolicypath - the path to the timeline object for which the check gets
performedmodel - the data source that returned the node and timeline objecttype - the type of the label (name, tooltip, description, etc...)ILabelPolicy.getLabel(TimelineObjectPath, IGanttChartModel, LabelType)public String getLabel(TimelineObjectPath path, IGanttChartModel model, LabelType type)
ILabelPolicygetLabel in interface ILabelPolicypath - the path to the timeline object for which a label gets
requestedmodel - the data source that returned the node and timeline objecttype - the type of the label (name, tooltip, description, etc...)ILabelPolicy.isLabelTypeVisible(TimelineObjectPath, IGanttChartModel, LabelType)public String getLabel(IRelationship relationship, IGanttChartModel model, LabelType type)
ILabelPolicygetLabel in interface ILabelPolicyrelationship - the relationship for which a label gets requestedmodel - the data source that returned the relationship objecttype - the label typepublic DateFormat getDateFormatter()
public void setDateFormatter(DateFormat format)
format - the date formatter object to useCopyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.