public class SemanticRelation extends Object
French:
Relation entre éléments de légende (ordre, association, dissociation).
Le principe des codes d'amélioration de légende est de faire que
ces relations théoriques soient bien en phase avec les relations
prévues entre les couleurs.
SemanticRelationDescriptor
Modifier and Type | Field and Description |
---|---|
static int |
ASSOCIATION |
static int |
DIFFERENCE |
static int |
ORDER |
static int |
UNKNOWN |
Constructor and Description |
---|
SemanticRelation()
Empty Constructor.
|
SemanticRelation(List<LegendComponent> relatedComponents,
int type) |
Modifier and Type | Method and Description |
---|---|
void |
addRelatedComponents(LegendComponent element)
Add a component to the components concerned by the relationship
(two or more).
|
List<LegendComponent> |
getRelatedComponents()
Returns the components concerned by the relationship (2 or more).
|
SemanticRelationDescriptor |
getSRD()
Returns the semanticRelationDescriptor to which this layer belongs to.
|
int |
getType()
Returns the type of the relationship.
|
boolean |
isAssociation() |
boolean |
isDifference() |
boolean |
isOrder() |
void |
removeRelatedComponents(LegendComponent element)
Remove a component from the list of components concerned by the relationship
(two or more).
|
void |
setRelatedComponents(List<LegendComponent> elementsEnRelation)
Specifies the components concerned by the relationship (2 or more).
|
void |
setSRD(SemanticRelationDescriptor srd)
Specifies the semanticRelationDescriptor to which this layer belongs to.
|
void |
setType(int type)
Specifies the type of the relationship.
|
String |
toString() |
public static final int UNKNOWN
public static final int ASSOCIATION
public static final int DIFFERENCE
public static final int ORDER
public SemanticRelation()
public SemanticRelation(List<LegendComponent> relatedComponents, int type)
public int getType()
public void setType(int type)
public boolean isAssociation()
public boolean isDifference()
public boolean isOrder()
public List<LegendComponent> getRelatedComponents()
public void setRelatedComponents(List<LegendComponent> elementsEnRelation)
public void addRelatedComponents(LegendComponent element)
public void removeRelatedComponents(LegendComponent element)
public SemanticRelationDescriptor getSRD()
public void setSRD(SemanticRelationDescriptor srd)
srd
- The semanticRelationDescriptor to which this layer belongs to.Copyright © 2016 Laboratoire COGIT, IGN. All rights reserved.