Package cz.vutbr.fit.layout.impl
Class DefaultChunkSet
- java.lang.Object
-
- cz.vutbr.fit.layout.impl.BaseArtifact
-
- cz.vutbr.fit.layout.impl.DefaultChunkSet
-
- Direct Known Subclasses:
RDFChunkSet
public class DefaultChunkSet extends BaseArtifact implements ChunkSet
A default chunk set implementation.- Author:
- burgetr
-
-
Constructor Summary
Constructors Constructor Description DefaultChunkSet(org.eclipse.rdf4j.model.IRI parentIri)
DefaultChunkSet(org.eclipse.rdf4j.model.IRI parentIri, Set<TextChunk> chunks)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTextChunk(TextChunk chunk)
TextChunk
createTextChunk(Rectangular r, Area sourceArea, Box sourceBox)
org.eclipse.rdf4j.model.IRI
getAreaTreeIri()
Gets the IRI of the area tree the chunk set was build from.org.eclipse.rdf4j.model.IRI
getArtifactType()
Gets the artifact type.protected int
getNextAreaId()
org.eclipse.rdf4j.model.IRI
getPageIri()
Gets the IRI of the related page.Set<TextChunk>
getTextChunks()
AreaTopology
getTopology()
void
invalidateTopology()
void
setAreaTreeIri(org.eclipse.rdf4j.model.IRI pageIri)
void
setNextAreaId(int nextId)
void
setPageIri(org.eclipse.rdf4j.model.IRI pageIri)
void
setTextChunks(Set<TextChunk> chunks)
void
updateTopology()
-
Methods inherited from class cz.vutbr.fit.layout.impl.BaseArtifact
equals, getCreatedOn, getCreator, getCreatorParams, getIri, getLabel, getMetadata, getParentIri, hashCode, setCreatedOn, setCreator, setCreatorParams, setIri, setLabel, setMetadata, setParentIri
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cz.vutbr.fit.layout.model.Artifact
getCreatedOn, getCreator, getCreatorParams, getIri, getLabel, getMetadata, getParentIri, setIri
-
-
-
-
Method Detail
-
getArtifactType
public org.eclipse.rdf4j.model.IRI getArtifactType()
Description copied from interface:Artifact
Gets the artifact type.- Specified by:
getArtifactType
in interfaceArtifact
- Returns:
- the IRI of the artifact type.
-
getAreaTreeIri
public org.eclipse.rdf4j.model.IRI getAreaTreeIri()
Description copied from interface:ChunkSet
Gets the IRI of the area tree the chunk set was build from. This may be equal to the parent IRI when the chunk set was built from an area tree directly.- Specified by:
getAreaTreeIri
in interfaceChunkSet
- Returns:
- the source area tree IRI
-
setAreaTreeIri
public void setAreaTreeIri(org.eclipse.rdf4j.model.IRI pageIri)
-
getPageIri
public org.eclipse.rdf4j.model.IRI getPageIri()
Description copied from interface:ChunkSet
Gets the IRI of the related page.- Specified by:
getPageIri
in interfaceChunkSet
- Returns:
- The page IRI.
-
setPageIri
public void setPageIri(org.eclipse.rdf4j.model.IRI pageIri)
-
getTextChunks
public Set<TextChunk> getTextChunks()
- Specified by:
getTextChunks
in interfaceChunkSet
-
addTextChunk
public void addTextChunk(TextChunk chunk)
-
invalidateTopology
public void invalidateTopology()
-
updateTopology
public void updateTopology()
-
getTopology
public AreaTopology getTopology()
- Specified by:
getTopology
in interfaceChunkSet
-
getNextAreaId
protected int getNextAreaId()
-
setNextAreaId
public void setNextAreaId(int nextId)
-
createTextChunk
public TextChunk createTextChunk(Rectangular r, Area sourceArea, Box sourceBox)
- Specified by:
createTextChunk
in interfaceChunkSet
-
-