org.fenfire.loom
Class NodeView.Nodespec

java.lang.Object
  |
  +--org.fenfire.loom.NodeView.Nodespec
Enclosing class:
NodeView

public static class NodeView.Nodespec
extends java.lang.Object

Information about a node to be rendered. Also used as the key for the coordsys containing the node. XXX better name for this class?


Field Summary
 int dir
          Larger than zero if the node is posward from the focus; smaller than zero if the node is negward from the focus; zero if the node is the focus.
 RDFNode node
          The node rendered in this cs.
 Property prop
          The property through which the node is related to the focus (null for the focus itself).
 
Constructor Summary
NodeView.Nodespec(RDFNode focus)
          Create a nodespec for the focused node.
NodeView.Nodespec(RDFNode node, Property prop, int dir)
          Create a nodespec for a node in the context.
NodeView.Nodespec(Statement stmt, int dir)
          Create a nodespec for a node in a statement.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

node

public final RDFNode node
The node rendered in this cs.


prop

public final Property prop
The property through which the node is related to the focus (null for the focus itself).


dir

public final int dir
Larger than zero if the node is posward from the focus; smaller than zero if the node is negward from the focus; zero if the node is the focus.

Constructor Detail

NodeView.Nodespec

public NodeView.Nodespec(RDFNode focus)
Create a nodespec for the focused node.


NodeView.Nodespec

public NodeView.Nodespec(Statement stmt,
                         int dir)
Create a nodespec for a node in a statement. If dir is -1, a nodespec for the subject is created, if dir is 1, a nodespec for the object.


NodeView.Nodespec

public NodeView.Nodespec(RDFNode node,
                         Property prop,
                         int dir)
Create a nodespec for a node in the context.

Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object