Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.port80.draw2d.* (6)com.port80.eclipse.* (617)com.port80.graph.* (119)com.port80.html.* (46)
com.port80.swt.* (12)com.port80.text.* (2)com.port80.theme.* (1)com.port80.util.* (41)
com.port80.xml.* (1)

Package Samples:

com.port80.eclipse.util
com.port80.eclipse.util.antlr
com.port80.eclipse.util.widgets
com.port80.eclipse.builder
com.port80.swt.widgets
com.port80.swt
com.port80.swt.apps
com.port80.draw2d.imageviewer.views
com.port80.draw2d
com.port80.eclipse.jdt.graph
com.port80.eclipse.jdt.graph.views
com.port80.eclipse.jdt
com.port80.eclipse.jdt.util
com.port80.eclipse.jdt.preferences
com.port80.eclipse.jdt.history
com.port80.eclipse.jdt.actions
com.port80.eclipse.jdt.method
com.port80.eclipse.jdt.annotation
com.port80.eclipse.xml.editors
com.port80.eclipse.xml.parser

Classes:

Anneal: Anneal a placement of a VirtualGraph with dynamic created grid points and meeting spacing requirements. For bus->bus and vertex->bus routes, grid start from the vertex x-coordinates and edge-edge (ESPACING) spacing apart on both sides. For vertex->vertex routes, grid start from the src x-coordinates and with (dest.x-src.x)/ESPACING divisions such that grid points are aligned with both src.x and dest.x. Each grid point is checked against existing vertices to make sure there are proper spacings. . Since Grid are now created dynamically, static data (eg. crossCost) are now moved to VirtualVertex and ...
AnnealWithCell: Anneal a placement of a VirtualGraph. . Output from MinCross and Position often contains some very obvious layout problem mainly due to MinCross having no distance information consider those cases as equivalent. Especially for bus routing, there are lots of opportunities to improve the layout by taking advantage the fact that anywhere on the bus is equivalent. . shortestPath() try to find a point to line or point to point path with minimum distance in the VirtualGraph with placement. Another pass of Position may be required to compact the layout afterwards. For bus-bus connections, shortestPath() ...
Debug: Debug mode and related utilities to selectively enable specific debug modes. Debug.set('*') enables all debug modes. Modes 'debug','trace','test','verbose','check' exists by default (but disabled except 'test' is default enabled) on startup and after Debug.clear(). Builtin modes: debug Turns on debug messages. trace Turns on trace messages. test Turns on test messages, which are temporary and would normally remove from source code after the testing. verbose Turns on verbose messages during normal execution. check Turns on check mode code, which provide additional sanity checkings that normal execution ...
RegionContentFormatter: Standard implementation of IContentFormatter . The formatter supports two operation modi: partition aware and partition unaware. In the partition aware mode, the formatter determines the partitioning of the document region to be formatted. For each partition it determines all document positions which are affected when text changes are applied to the partition. Those which overlap with the partition are remembered as character positions. These character positions are passed over to the formatting strategy registered for the partition's content type. The formatting strategy returns a string containing ...
Clean: Filters from other formats such as Microsoft Word often make excessive use of presentation markup such as font tags, B, I, and the align attribute. By applying a set of production rules, it is straight forward to transform this to use CSS. Some rules replace some of the children of an element by style properties on the element, e.g. ... -> ... Such rules are applied to the element's content and then to the element itself until none of the rules more apply. Having applied all the rules to an element, it will have a style attribute with one or more properties. Other rules strip the element they apply ...
IGraph: Graph interface. . Each Graph have a name, a set of vertex (and thus a set of edges that come with it) and graph, and an attribute table. Each graph also have an associated vertex and edge factory. The default vertex factory would only allow vertex with unique names. The default edge factory is DefaultEdgeFactory which allow any kind of edges. . Graph is a container of GraphElement including Graph instances themselves. A graph can be viewed in two perspectives. Vertex and Edge are connected in a flat heirarchy. However, the graph can also be viewed as a tree of graphs each containing a set of vertices. ...
FileDependGraphAction: Depend Graph depicts the source file and class file type reference relationships. For source file, all types in the source file are grouped into one node. For binary class file, nested class are grouped to the node for their enclosing class. Reference is depicted by an edge to the referenced type/file. To make the graph more readable, edge from an inherited type is removed if its super class/interface exists in the graph and already has an edge to the same destination. Type are represented by vertex. The vertex name is the absolute file path for source type and fully qualified typename + ".java" ...
MethodView: Show methods of a type including methods inherited from super classes. This is similar to the Outline view except that it shows only methods and it shows non-private methods from the super classes even though they are not overriden. So user can knows what methods are available. This sample class demonstrates how to plug-in a new workbench view. The view shows data obtained from the model. The sample creates a dummy model on the fly, but a real implementation would connect to the model available either in this or another plug-in (e.g. the workspace). The view is connected to the model using a content ...
IEdge: Graph edge interface. . Each edge has a name, a head node, a tail node and an attribute table. For directed graph, head is the destination node (one with arrow head) and tail is the source node. . Edges are created and destroyed by EdgeFactory or its derivatives. Creating an edge automatically perform all the book keeping works to check for validity and connect the two vertex (adding the edge to both vertex). If an edge is not valid, EdgeFactory return null. Destroy an edge remove the connections at both vertex. . Attribute registry The EdgeFactory maintain a registry of valid attributes for edges ...
ImageViewer4x: An image viewer using swt. A GC can be created on an Image and then use it to draw into the Image. To display very large image, pixel data is loaded into ImageData and then tiles of the data are used to create Image's for display. This is an experimental version modified from ImageViewer3. To reduce time lag between clear and update during scroll, a large Image is drawn to the display, so that it would use scroll in the offscreen image instead of wait for update from the PaintEvent. The PaintEvent then fill up the offscreen section that are scrolled away. Update is much faster. There are no visiable ...
ImageViewer3: An image viewer using swt. A GC can be created on an Image and then use it to draw into the Image. To display very large image, pixel data is loaded into ImageData and then tiles of the data are used to create Image's for display. This is an more acceptable version of ImageViewer2. Instead of allocating a new Image on scroll, the buffered Image is scrolled and damaged area is updated. A new Image is allocated only when the size of the Canvas client area changed. Small scrolling is quite smooth for really small scroll but noticably worse when scroll step get larger. There are flicker in the damaged ...
IState: A simple parser to parse html like attributed strings. Output is the un-attributed text returned by getText() and a List of TextAttr returned by getAttrs(). Attributes for line format eg. hr,left,right,center,alt are returned by getAlign(). Current supported character attributes: <b></b> Bold <font [color=0xhhhhhh|name] [size=float]></font> Font color and size. <color</color>=0xhhhhhh|name] Shorthand for font color. <size</size>=float Shorthand for font size. Line attributes apply to and only to the attributed line: <hr> Horizontal ruler (before line if occurs at start ...
ImageIndexView: This sample class demonstrates how to plug-in a new workbench view. The view shows data obtained from the model. The sample creates a dummy model on the fly, but a real implementation would connect to the model available either in this or another plug-in (e.g. the workspace). The view is connected to the model using a content provider. The view uses a label provider to define how model objects should be presented in the view. Each view can present the same model objects using different labels and icons, if needed. Alternatively, a single label provider can be shared between views in order to ensure ...
DotGraph: DotGraph is an intermediate graph created for layout using the 'dot' layout algorithms. DotGraph is created from an IGraph with additional V/E added or removed to be used by the NetworkSimplex.dotRank(). . DotGraph is created by extracting the topology information from an input IGraph. Instead of overlay onto the original graph, DotDirectGraph build an independent copy of the original graph. . Layout result are patched back to the original graph attribute table ('pos','-rank') and the DotGraph can be released after each layout. . DotGraph is read only since neither the vertex nor the edges from ...
DirectedEdgeFactory: Factory class that produce edges for directed graph.The factory also provide an IAttrTable interface for accessing default attributes and method to get the IAttrRegistry interface for client to check for unqiue attribute names. 'weight' and 'xpenalty' are supposed to be initialized from the graph description. If they are not specified, default values are used by DotEdge and VirutalEdge ... etc. (The attribute values stay undefined). DotEdge should use "weight_default" and "weight_critical" in the EdgeFactory table. VirtualEdge use "position_weight_default", "position_weight_stub", "position_weight_critical" ...
Untangle: Untangle a placement of a VirtualGraph. Global cross reduction using shortest path algoirthm on output of MinCross. . This is adapted from Anneal except that without actual coordinates, the distance and turn cost are not used. Instead of find the actual shortest path, the goal is just to go around crossings. Instead of using a grid, the map opens a channel between each pair of vertices for routing. NOTE: . After an edge chain is erased before routing, the vertex cells still keep the .vertex and .crossCost fields valid and used for cross cost calculations.
GenGraphVisitor: Generate graph object from AST. . Dot file coordinate system have origin at lower-left corner which is differ from Java at upper-left corner. Dot file have a graph attribute 'bb', that defines the bounding box of routed graphs, can be used to convert the coordinates. OBSOLETE: . This is an expriment to generate graph from AST instead of directly in the parser. For this simple grammer, it is possible but still uneccessarily complicated since it often required to check for child type and recreate the context. It is better to do a little more inside the parser.
AnnotationManager: Data model for AnnotationView. Annotation keep the set of visited IResources together with access information. It kept all visited objects automatically upon visiting instead of manually by user. It can be used to backtrace visit history. It can be further bookmark or annotated by user. This is an enchancement of the BookmarkView which, unfortunately as of Eclipse 2.0, cannot bookmark binary classes and it is not easy for annotation. AnnotationManager also works without the AnnotationView active and manage only the visited object list and its related actions.
ArrowFactory: Arrow factory. Arrow factory provides a named collection of of stock Arrow object templates. Each template is parameterized by the leadinWidth, which determines the leadin shape. Default templates have leadinWidth=1.0f. The template produced have default colors from the Arrow class. Typically client have to set the appropriate attributes for the Arrow template and render it into an BufferedImage and then applied AffineTransform and composition to merge the rendered image to client area. //FIXME: . Scale square down to 1/sqrt(2) with leadin.
DependGraphAction: Extract an method call graph in UML like format for a given set of classes ( 'selected' objects). Each vertex represent either a caller or a callee. Caller is a method or a class labelled with method that calls external methods. Callee is method that is called by a caller. Edges of type '-hasCalls' represent calls from the caller vertex to the callee vertex. Edges of type '-typehier' represent type herierhical from superclass to derived classes. Edges of type '-implemented' represent that the head vertex (method) implements tail vertex (interface).
ScopeStack: Scope stack is used by the parser to keep track of the current lexical scopes and performs symbol lookups. . Scope stack from bottom to top: RootContext scope CompilationUnit scope TopLevelClass scope class/block/method...etc. scopes ... . When a variable is encountered in the statement, its type is determined by searching the scopes from the top of the scope stack downwards until it found the variable declaration/definition. If a scope belongs to an IType (parent!=null), IType would search the super-class and/or super-interfaces.
sprint: Formatted print like one in C. . Addition date formats: Now(T0)=|185743| Now(TT)=|18:57:43| Now(TH)=|18:57| Now(TM)=|57:43| Now(YY)=|2002| Now(MM)=|3| Now(WW)=|Fri| Now(D0)=|20020308| Now(DD)=|2002-03-08| Now(DM)=|3-8| Now(Dm)=|3-8| Now(Ds)=|3| Now(DH)=|18:57 3-8| Now(Dh)=|3-8 18:57| Now(DY)=|2002-3| Now(Dy)=|2002-3| Now(DT)=|2002-03-08 18:57:43| Now(U0)=|03082002| Now(UD)=|03/08/2002| Now(UM)=|3/8| Now(Um)=|3/8| Now(Us)=|3| Now(UH)=|18:57 3/8| Now(Uh)=|3/8 18:57| Now(UY)=|3/2002| Now(Uy)=|3/2002| Now(UT)=|03/08/2002 18:57:43| Now(D0 T0)=|20020308 185743|
IScopeStack: Scope stack is used by the parser to keep track of the current lexical scopes and performs symbol lookups. . Scope stack from bottom to top: rootNode scope compilationUnit scope topLevelClass scope class/block/method...etc. scopes ... . When a variable is encountered in the statement, its type is determined by searching the scopes from the top of the scope stack downwards until it found the variable declaration/definition. If a scope belongs to a classs (parent!=null), ASTClassNode would search the superclasses and interfaces.
ImageViewer2: An image viewer using swt. A GC can be created on an Image and then use it to draw into the Image. This is an experimental version modified from ImageViewer1 to handle large image. To display very large image, pixel data is loaded into ImageData and then extract region of the data are used to create Image's for display. For simplicity, a new Image is created for every PaintEvent which is proved to be really slow and not usable. See ImageViewer3 for a better implementation. Scrolls are jumpy and slow.

Home | Contact Us | Privacy Policy | Terms of Service