public static < T extends WindupVertexFrame > T addTypeToModel ( GraphContext graphContext , WindupVertexFrame frame , Class < T > type ) { Vertex vertex = frame . getElement ( ) ; graphContext . getGraphTypeManager ( ) . addTypeToElement ( type , vertex ) ; return graphContext . getFramed ( ) . frameElement ( vertex , type ) ; }
Adds the specified type to this frame and returns a new object that implements this type .