Package cz.vutbr.fit.layout.rdf.model
Class RDFArea
- java.lang.Object
-
- cz.vutbr.fit.layout.impl.DefaultTreeNode<T>
-
- cz.vutbr.fit.layout.impl.DefaultTreeContentRect<Area>
-
- cz.vutbr.fit.layout.impl.DefaultArea
-
- cz.vutbr.fit.layout.rdf.model.RDFArea
-
- All Implemented Interfaces:
Area
,ContentRect
,GenericTreeNode<Area>
,Rect
,Taggable
,RDFOrderedResource
,RDFResource
public class RDFArea extends DefaultArea implements RDFOrderedResource
- Author:
- burgetr
-
-
Field Summary
Fields Modifier and Type Field Description protected int
documentOrder
protected org.eclipse.rdf4j.model.IRI
iri
-
Fields inherited from interface cz.vutbr.fit.layout.model.ContentRect
ATTR_SAME_AS
-
-
Constructor Summary
Constructors Constructor Description RDFArea(Rectangular r, org.eclipse.rdf4j.model.IRI uri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDocumentOrder()
Gets the order of the resource within the artifact.org.eclipse.rdf4j.model.IRI
getIri()
Obtains the URI of the resource in the RDF storage.void
setDocumentOrder(int documentOrder)
Sets the document order for the resource.void
setIri(org.eclipse.rdf4j.model.IRI uri)
void
sortBoxes()
Sorts contained boxes in the document order-
Methods inherited from class cz.vutbr.fit.layout.impl.DefaultArea
addBox, addTag, appendChild, containsTag, copy, createSuperArea, createTopology, getAllBoxes, getAreaTree, getBoxDescription, getBoxes, getBoxText, getBoxText, getContentBounds, getEffectiveBackgroundColor, getGridPosition, getLevel, getMostSupportedTag, getName, getSupportedTags, getTags, getTagSupport, getText, getText, getText, getTopology, hasTag, hasTag, childrenChanged, insertChild, insertParent, invalidateTopology, isExplicitlySeparated, isHorizontalSeparator, isReplaced, isSeparator, isVerticalSeparator, move, recomputeTextStyle, removeAllTags, removeBox, removeBoxes, removeTag, setAreaTree, setExplicitlySeparated, setGridPosition, setHorizontalSeparator, setLevel, setName, setVerticalSeparator, toString, updateTopologies
-
Methods inherited from class cz.vutbr.fit.layout.impl.DefaultTreeContentRect
addUserAttribute, equals, getBackgroundColor, getBackgroundImagePng, getBorderCount, getBorderStyle, getBottomBorder, getBounds, getHeight, getId, getLeftBorder, getLine, getPageIri, getRightBorder, getTextStyle, getTopBorder, getUserAttribute, getWidth, getX1, getX2, getY1, getY2, hasBackground, hasBottomBorder, hashCode, hasLeftBorder, hasRightBorder, hasTopBorder, isBackgroundSeparated, setBackgroundColor, setBackgroundImagePng, setBackgroundSeparated, setBorderStyle, setBounds, setId, setLine, setPageIri, setTextStyle
-
Methods inherited from class cz.vutbr.fit.layout.impl.DefaultTreeNode
appendChildren, getDepth, getChildAt, getChildCount, getChildren, getIndex, getLeafCount, getNextSibling, getParent, getPreviousSibling, getRoot, isLeaf, isRoot, removeAllChildren, removeChild, removeChild, setParent, setRoot
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface cz.vutbr.fit.layout.model.Area
setBorderStyle
-
Methods inherited from interface cz.vutbr.fit.layout.model.ContentRect
addUserAttribute, getBackgroundColor, getBackgroundImagePng, getBorderCount, getBorderStyle, getBottomBorder, getBounds, getId, getLeftBorder, getLine, getPageIri, getRightBorder, getTextStyle, getTopBorder, getUserAttribute, hasBackground, hasBottomBorder, hasLeftBorder, hasRightBorder, hasTopBorder, isBackgroundSeparated, setBackgroundSeparated, setBounds, setLine
-
Methods inherited from interface cz.vutbr.fit.layout.model.GenericTreeNode
appendChildren, getDepth, getChildAt, getChildCount, getChildren, getIndex, getLeafCount, getNextSibling, getParent, getPreviousSibling, getRoot, isLeaf, isRoot, removeAllChildren, removeChild, removeChild, setParent, setRoot
-
-
-
-
Constructor Detail
-
RDFArea
public RDFArea(Rectangular r, org.eclipse.rdf4j.model.IRI uri)
-
-
Method Detail
-
getIri
public org.eclipse.rdf4j.model.IRI getIri()
Description copied from interface:RDFResource
Obtains the URI of the resource in the RDF storage.- Specified by:
getIri
in interfaceRDFResource
- Returns:
- the resource URI
-
setIri
public void setIri(org.eclipse.rdf4j.model.IRI uri)
-
getDocumentOrder
public int getDocumentOrder()
Description copied from interface:RDFOrderedResource
Gets the order of the resource within the artifact.- Specified by:
getDocumentOrder
in interfaceRDFOrderedResource
- Returns:
- a positive integer that can be used for ordering the resource.
-
setDocumentOrder
public void setDocumentOrder(int documentOrder)
Description copied from interface:RDFOrderedResource
Sets the document order for the resource.- Specified by:
setDocumentOrder
in interfaceRDFOrderedResource
- Parameters:
documentOrder
- the order (positive integer) to be set.
-
sortBoxes
public void sortBoxes()
Sorts contained boxes in the document order
-
-