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 voidaddTextChunk(TextChunk chunk)TextChunkcreateTextChunk(Rectangular r, Area sourceArea, Box sourceBox)org.eclipse.rdf4j.model.IRIgetAreaTreeIri()Gets the IRI of the area tree the chunk set was build from.org.eclipse.rdf4j.model.IRIgetArtifactType()Gets the artifact type.protected intgetNextAreaId()org.eclipse.rdf4j.model.IRIgetPageIri()Gets the IRI of the related page.Set<TextChunk>getTextChunks()AreaTopologygetTopology()voidinvalidateTopology()voidsetAreaTreeIri(org.eclipse.rdf4j.model.IRI pageIri)voidsetNextAreaId(int nextId)voidsetPageIri(org.eclipse.rdf4j.model.IRI pageIri)voidsetTextChunks(Set<TextChunk> chunks)voidupdateTopology()-
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:ArtifactGets the artifact type.- Specified by:
getArtifactTypein interfaceArtifact- Returns:
- the IRI of the artifact type.
-
getAreaTreeIri
public org.eclipse.rdf4j.model.IRI getAreaTreeIri()
Description copied from interface:ChunkSetGets 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:
getAreaTreeIriin 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:ChunkSetGets the IRI of the related page.- Specified by:
getPageIriin interfaceChunkSet- Returns:
- The page IRI.
-
setPageIri
public void setPageIri(org.eclipse.rdf4j.model.IRI pageIri)
-
getTextChunks
public Set<TextChunk> getTextChunks()
- Specified by:
getTextChunksin interfaceChunkSet
-
addTextChunk
public void addTextChunk(TextChunk chunk)
-
invalidateTopology
public void invalidateTopology()
-
updateTopology
public void updateTopology()
-
getTopology
public AreaTopology getTopology()
- Specified by:
getTopologyin interfaceChunkSet
-
getNextAreaId
protected int getNextAreaId()
-
setNextAreaId
public void setNextAreaId(int nextId)
-
createTextChunk
public TextChunk createTextChunk(Rectangular r, Area sourceArea, Box sourceBox)
- Specified by:
createTextChunkin interfaceChunkSet
-
-