Uses of Class
com.googlecode.whatswrong.Token

Packages that use Token
com.googlecode.whatswrong The whatswrong package is the top-level package of What's Wrong With My NLP. 
 

Uses of Token in com.googlecode.whatswrong
 

Methods in com.googlecode.whatswrong that return Token
 Token Token.addProperty(java.lang.String name, java.lang.String value)
          Add a property with the given name and value.
 Token Token.addProperty(TokenProperty property, java.lang.String value)
          Add a property with given value.
 Token NLPInstance.addToken()
          Adds a new token and returns it.
 Token NLPInstance.addToken(int index)
          Adds a token at a certain index.
 Token Edge.getFrom()
          Returns the start token of the edge.
 Token Edge.getTo()
          Returns the end token of the edge.
 Token NLPInstance.getToken(int index)
          Returns the token at the given index.
 

Methods in com.googlecode.whatswrong that return types with arguments of type Token
 java.util.Map<Token,java.lang.Integer> SpanLayout.estimateRequiredTokenWidths(java.util.Collection<Edge> edges, java.awt.Graphics2D g2d)
          For each token that has a self-loop we need the token to be wide enough.
 java.util.Map<Token,Bounds1D> TokenLayout.estimateTokenBounds(NLPInstance instance, java.util.Map<Token,java.lang.Integer> tokenWidths, java.awt.Graphics2D g2d)
          Method estimateTokenBounds calculates the horizontal bounds of each token in the layout of the tokens.
 java.util.List<Token> TokenFilter.filterTokens(java.util.Collection<Token> original)
          Filter a set of tokens by removing property values and individual tokens according to the set of allowed strings and forbidden properties.
 java.util.List<Token> NLPInstance.getTokens()
          Returns a list of all tokens in this instance.
 

Methods in com.googlecode.whatswrong with parameters of type Token
 void NLPInstance.addEdge(Token from, Token to, java.lang.String label, java.lang.String type)
          Creates and adds an edge with the given properties.
 void NLPInstance.addEdge(Token from, Token to, java.lang.String label, java.lang.String type, Edge.RenderType renderType)
          Creates and adds an edge with the given properties.
 int Token.compareTo(Token o)
          Compares the indices of both tokens.
 java.awt.geom.Rectangle2D TokenLayout.getBounds(Token vertex)
          Gets the bounds of the property value stack of the given token.
 java.awt.font.TextLayout TokenLayout.getPropertyTextLayout(Token vertex, int index)
          Returns the text layout for a given property and property index in the stack.
 boolean Edge.leftOf(Token token)
          Checks whether the edge is to the left of the given token.
 void Token.merge(Token token)
          Inserts all properties and values of the other token into this token.
 boolean Edge.rightOf(Token token)
          Checks whether the edge is to the right of the given token.
 

Method parameters in com.googlecode.whatswrong with type arguments of type Token
 void NLPInstance.addTokens(java.util.Collection<Token> tokens)
          Adds the given collection of tokens to this instance.
 java.util.Map<Token,Bounds1D> TokenLayout.estimateTokenBounds(NLPInstance instance, java.util.Map<Token,java.lang.Integer> tokenWidths, java.awt.Graphics2D g2d)
          Method estimateTokenBounds calculates the horizontal bounds of each token in the layout of the tokens.
 java.util.List<Token> TokenFilter.filterTokens(java.util.Collection<Token> original)
          Filter a set of tokens by removing property values and individual tokens according to the set of allowed strings and forbidden properties.
 java.awt.Dimension TokenLayout.layout(NLPInstance instance, java.util.Map<Token,java.lang.Integer> tokenWidths, java.awt.Graphics2D g2d)
          Lays out all tokens in the given collection as stacks of property values that are placed next to each other according the order of the tokens (as indicated by their indices).
 java.awt.Dimension SpanLayout.layoutEdges(java.util.Collection<Edge> edges, java.util.Map<Token,Bounds1D> bounds, java.awt.Graphics2D g2d)
          Lays out the edges as spans (blocks) under or above the tokens they contain.
 java.awt.Dimension DependencyLayout.layoutEdges(java.util.Collection<Edge> edges, java.util.Map<Token,Bounds1D> bounds, java.awt.Graphics2D g2d)
          Lays out the edges as directed labelled dependency links between tokens.
 

Constructors in com.googlecode.whatswrong with parameters of type Token
Edge(Token from, Token to, java.lang.String label, java.lang.String type)
          Creates a new edge with default render type (dependency).
Edge(Token from, Token to, java.lang.String label, java.lang.String type, Edge.RenderType renderType)
          Create new edge.
Edge(Token from, Token to, java.lang.String label, java.lang.String note, java.lang.String type, Edge.RenderType renderType)
          Create new edge.
 

Constructor parameters in com.googlecode.whatswrong with type arguments of type Token
NLPInstance(java.util.Collection<Token> tokens, java.util.Collection<Edge> edges, NLPInstance.RenderType renderType, java.util.List<java.lang.Integer> splitPoints)
          Creates a new NLPInstance with the given tokens and edges.
 



Copyright © 2009. All Rights Reserved.