JShapes Library contains many shapes grouped in the following categories.
- Basic Shapes
- Flowchart shapes
- UML shapes
- Connector Lines
- Arrow Heads
Basic shapes include Triangle, Cube, Cylinder, Diamond, Hexagon, Parallelogram, Rounded Corner Rectangle, Oblong, Braces, Brackets, Arrows, Bevel, Chevron, Trapezoid, Regular Polygon, Donut, Eye, Sun, Moon, People, No Symbol, Notes, Money Bag, Open Folder, Folder, Semi Circle, Heart, Tick, Block Arc, Closed Folder, Cloud, Corner Cut Rectangle and Corner Rectangle.
The following code shows a simple example of how to create a shape from this library. The shape can be filled and stroked with custom paints such as Gradient Paint, Texture Paint etc.
// 1. Create a Diamond Shape Diamond shape = new Diamond(bounds); // 2. Fill Shape g2.fill( shape ) ; // 3. Draw Shape g2.draw( shape ) ;
Star shapes include Explosion, 5-Point stars, 8-pt Stars, 16-pt stars, 24-pt stars, 32-pt stars.
Flowchart shapes include Process, Alternate Process, Predefined Process, Card, Collate, Connector, Data, Decision, Delay, Direct Access Storage, Display, Document, Extract, Internal Storage, Magnetic Disk, Manual Input, Manual Operation, Merge, Multi Document, Off-Page Connector, OR, Preparation, Punched Tape, Sequential Access Storage, Sort, Stored Data, Summing Junction, Terminator.
UML Activity Diagram
UML Activity Diagram Shapes include Accept Signal, Activity, Sub diagram, Branch, End, Flow Final, Fork, Join, Merge, Pin Horizontal, Pin Vertical, Start.
UML Class Diagram
UML Class Diagram Shapes include Class, Object, Multi Object.
UML Use Case Diagram
UML Use Case Diagram Shapes include Use Case, Actor and System Boundary.
UML Sequence Diagram
UML Sequence Diagram Shapes include Activate, Activation Bar, Compound State, Deletion, Fragment.
UML State Diagram
UML State Diagram Shapes include Accept Signal, Final State, Horizontal Pin, Vertical Pin, Initial State, State, Sub Diagram.
UML Deployment Diagram
UML Deployment Diagram Shapes include Component, Artifact, Node and Package.
UML Notes Shapes include Notes.
UML Relationships Shapes include Aggregation, Composition, Inheritance, Dependency, Association, Interface, Interface Implementation, Interface Required, Include, Extend, Direct Association, Message, Synchronous Message, Asynchronous Message, Return Message, Initial State, Parameter.
UML Arrow Heads
UML Arrow Shapes include Aggregation, Composition, Inheritance, Dependency, Association, Interface, Interface Implementation, Interface Required, Include, Extend, Direct Association, Message, Synchronous Message, Asynchronous Message, Return Message, Initial State, Parameter.
Tabs Shapes include Corner Tabs, Eclipse Tabs, Office 2003 Tabs, Rounded Corner Tabs, Tab Content Shapes.
Strokes styles include the following patterns.
Text Shapes can be created from the given Text and Font.