## Examples of Shape

• Bridge.Shape
• ae.java.awt.Shape
The Shape interface provides definitions for objects that represent some form of geometric shape. The Shape is described by a {@link PathIterator} object, which can express theoutline of the Shape as well as a rule for determining how the outline divides the 2D plane into interior and exterior points. Each Shape object provides callbacks to get the bounding box of the geometry, determine whether points or rectangles lie partly or entirely within the interior of the Shape, and retrieve a PathIterator object that describes the trajectory path of the Shape outline.

Definition of insideness: A point is considered to lie inside a Shape if and only if:

• it lies completely inside theShape boundary or
• it lies exactly on the Shape boundary and the space immediately adjacent to the point in the increasing X direction is entirely inside the boundary or
• it lies exactly on a horizontal boundary segment and the space immediately adjacent to the point in the increasing Y direction is inside the boundary.

The contains and intersects methods consider the interior of a Shape to be the area it encloses as if it were filled. This means that these methods consider unclosed shapes to be implicitly closed for the purpose of determining if a shape contains or intersects a rectangle or if a shape contains a point. @see ae.java.awt.geom.PathIterator @see ae.java.awt.geom.AffineTransform @see ae.java.awt.geom.FlatteningPathIterator @see ae.java.awt.geom.GeneralPath @author Jim Graham @since 1.2

• ch.blackspirit.graphics.shape.Shape
Interface able to represent any kind of shape. @author Markus Koller
• chunmap.data.feature.Shape
• com.anotherbigidea.flash.movie.Shape
A Shape Symbol
• com.aspose.words.Shape
• com.github.jmkgreen.morphia.testmodel.Shape
@author Olafur Gauti Gudmundsson
Shape
Allgemeine Klasse für eine geometrische Figur. @author Niklas Fiekas
• com.graphics.Shape
• com.gwcworld.core.bean.Shape
• com.jgraph.gaeawt.java.awt.Shape
Shape
• com.spatial4j.core.shape.Shape
The base interface defining a geometric shape. Shape instances should be instantiated via one of the create* methods on a {@link SpatialContext} orby reading WKT which calls those methods; they should not be created directly.

Shapes are generally immutable and thread-safe. If a particular shape has a reset(...) method then its use means the shape is actually mutable. Mutating shape state is considered expert and should be done with care.

• dwlab.shapes.Shape
Common object for item of game field.
• eas.simulation.spatial.sim2D.physicalSimulation.physicsEngine.net.phys2d.raw.shapes.Shape
A simple shape describing the area covered by a body @author Kevin Glass
• flash.swf.types.Shape
A value object for shape data. @author Clement Wong
• gov.nist.microanalysis.NISTMonte.MonteCarloSS.Shape
• gwt.g2d.client.graphics.shapes.Shape
Represents an abstract shape. A custom shape can be created using {@link ShapeBuilder}. @author hao1300@gmail.com
• java.awt.Shape
The Shape interface provides definitions for objects that represent some form of geometric shape. The Shape is described by a {@link PathIterator} object, which can express the outline of the Shape as well as a rule for determining how the outline divides the 2D plane into interior and exterior points. Each Shape object provides callbacks to get the bounding box of the geometry, determine whether points or rectangles lie partly or entirely within the interior of the Shape, and retrieve a PathIterator object that describes the trajectory path of the Shape outline.

Definition of insideness: A point is considered to lie inside a Shape if and only if:

• it lies completely inside theShape boundary or
• it lies exactly on the Shape boundary and the space immediately adjacent to the point in the increasing X direction is entirely inside the boundary or
• it lies exactly on a horizontal boundary segment and the space immediately adjacent to the point in the increasing Y direction is inside the boundary.

The contains and intersects methods consider the interior of a Shape to be the area it encloses as if it were filled. This means that these methods consider unclosed shapes to be implicitly closed for the purpose of determining if a shape contains or intersects a rectangle or if a shape contains a point. @see java.awt.geom.PathIterator @see java.awt.geom.AffineTransform @see java.awt.geom.FlatteningPathIterator @see java.awt.geom.GeneralPath @version 1.19 06/24/98 @author Jim Graham @since 1.2

• javafx.scene.shape.Shape
• lineage2.commons.geometry.Shape
@author Mobius @version \$Revision: 1.0 \$
• net.phys2d.raw.shapes.Shape
A simple shape describing the area covered by a body @author Kevin Glass
• net.sf.arianne.marboard.client.entity.shape.Shape
a base class for all visible entities @author hendrik
• net.sf.arianne.marboard.server.entity.shape.Shape
abstract base class for all visible shapes @author hendrik
• nu.fw.jeti.plugins.drawing.shapes.Shape
This class represents an abstract shape. @author El�bieta Iwaszkiewicz (ei197866@students.mimuw.edu.pl)
A simple shape, whose only attribute is a Color, which can be changed. Lambda Tutorial -- Adopt Open JDK @author Graham Allan grundlefleck at gmail dot com @see Color
• org.apache.flex.swf.types.Shape
Shape is used by the {@code DefineFont} tag, to define character glyphs.
• org.apache.isis.viewer.dnd.drawing.Shape
• org.apache.poi.hslf.model.Shape

Represents a Shape which is the elemental object that composes a drawing. This class is a wrapper around EscherSpContainer which holds all information about a shape in PowerPoint document.

When you add a shape, you usually specify the dimensions of the shape and the position of the upper�left corner of the bounding box for the shape relative to the upper�left corner of the page, worksheet, or slide. Distances in the drawing layer are measured in points (72 points = 1 inch).

@author Yegor Kozlov

• org.apache.poi.hwpf.usermodel.Shape
• org.codemap.util.geom.Shape
The Shape interface provides definitions for objects that represent some form of geometric shape. The Shape is described by a {@link PathIterator} object, which can express theoutline of the Shape as well as a rule for determining how the outline divides the 2D plane into interior and exterior points. Each Shape object provides callbacks to get the bounding box of the geometry, determine whether points or rectangles lie partly or entirely within the interior of the Shape, and retrieve a PathIterator object that describes the trajectory path of the Shape outline.

Definition of insideness: A point is considered to lie inside a Shape if and only if:

• it lies completely inside theShape boundary or
• it lies exactly on the Shape boundary and the space immediately adjacent to the point in the increasing X direction is entirely inside the boundary or
• it lies exactly on a horizontal boundary segment and the space immediately adjacent to the point in the increasing Y direction is inside the boundary.

The contains and intersects methods consider the interior of a Shape to be the area it encloses as if it were filled. This means that these methods consider unclosed shapes to be implicitly closed for the purpose of determining if a shape contains or intersects a rectangle or if a shape contains a point. @see java.awt.geom.PathIterator @see java.awt.geom.AffineTransform @see java.awt.geom.FlatteningPathIterator @see java.awt.geom.GeneralPath @author Jim Graham @since 1.2

• org.eclipse.dd.di.Shape
A representation of the model object 'Shape'.

The following features are supported:

@see org.eclipse.dd.di.DiPackage#getShape() @model abstract="true"extendedMetaData="name='Shape' kind='elementOnly'" @generated
• org.eclipse.gmf.runtime.notation.Shape
• org.eclipse.graphiti.mm.pictograms.Shape
• org.elevenbits.westvleteren.model.item.Shape
@TODO : document this! @author m8n @version 18.07.2005
• org.freeplane.features.cloud.CloudModel.Shape
• org.jboss.weld.examples.osgi.paint.api.Shape
• org.jbox2d.collision.shapes.Shape
A shape is used for collision detection. You can create a shape however you like. Shapes used for simulation in World are created automatically when a Fixture is created. Shapes may encapsulate a one or more child shapes.
• org.jmol.shape.Shape
Shape now encompasses: AtomShape (abstract) | Balls, Dots, Ellipsoids, Halos, Labels, Polyhedra, Stars, Vectors | GeoSurface BioShapeCollection (abstract) | Backbone, Cartoon, MeshRibbon, Ribbons, Rockets, Strands, Trace Dipoles FontLineShape (abstract) | Axes, Bbcage, Frank, Uccage Measures MeshCollection (abstract) | | Draw Isosurface | LcaoCartoon, MolecularOrbital, Pmesh Sticks | Hsticks, Sssticks TextShape (abstract) | Echo, Hover
• org.jzy3d.plot3d.primitives.Shape
• org.mongodb.morphia.testmodel.Shape
@author Olafur Gauti Gudmundsson
• org.newdawn.fizzy.Shape
Description of any class representing a shape for collision. The shape both defines the geometry and the collision properties. However, these can be augmented at the Body level. @author kevin
• org.newdawn.slick.geom.Shape
The description of any 2D shape that can be transformed. The points provided approximate the intent of the shape. @author Mark
• org.nlogo.api.Shape
• org.openstreetmap.josm.data.imagery.Shape
@author Vincent
• org.pptx4j.pml.Shape
3.org/2001/XMLSchema}anyType"> <sequence> <element name="nvSpPr"> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="cNvPr" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_NonVisualDrawingProps"/> <element name="cNvSpPr" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_NonVisualDrawingShapeProps"/> <element name="nvPr" type="{http://schemas.openxmlformats.org/presentationml/2006/main}CT_ApplicationNonVisualDrawingProps"/> </sequence> </restriction> </complexContent> </complexType> </element> <element name="spPr" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_ShapeProperties"/> <element name="style" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_ShapeStyle" minOccurs="0"/> <element name="txBody" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_TextBody" minOccurs="0"/> <element name="extLst" type="{http://schemas.openxmlformats.org/presentationml/2006/main}CT_ExtensionListModify" minOccurs="0"/> </sequence> <attribute name="useBgFill" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /> </restriction> </complexContent> </complexType>
• org.sgx.yuigwt.yui.graphic.Shape
brary.com/yui/docs/api/classes/Drawing.html), Drawing methods goes here too.

Shape is an abstract class and is not meant to be used directly. The following classes extend Shape.

Shape can also be extended to create custom shape classes.

## Path documentation:

The Path class creates a shape through the use of drawing methods. The Path class has the following drawing methods available: clear, curveTo, drawRect¸ drawRoundRect, end, lineTo, moveTo, quadraticCurveTo

Like other shapes, Path elements are created using the addShape method of the Graphic class. The method's cfg argument contains a type attribute. Assigning "path" or Y.Path to this attribute will create a Path instance. After instantiation, a series of drawing operations must be performed in order to render a shape. The below code instantiates a path element by defining the type attribute as "path":

var myPath = myGraphic.addShape({ type: "path", fill: { color: "#9aa" }, stroke: { weight: 1, color: "#000" } });

Below a Path element with the same properties is instantiated by defining the type attribute with a class reference:

var myPath = myGraphic.addShape({ type: Y.Path, fill: { color: "#9aa" }, stroke: { weight: 1, color: "#000" } });

After instantiation, a shape or segment needs to be drawn for an element to render. After all draw operations are performed, the end method will render the shape. The code below will draw a triangle:

myPath.moveTo(35, 5); myPath.lineTo(65, 65); myPath.lineTo(5, 65); myPath.lineTo(35, 5); myPath.end();
@author sg
• org.springframework.data.geo.Shape
Common interface for all shapes. Allows building external representations of them. @author Oliver Gierke @author Thomas Darimont
• org.test.shape.Shape
• pl.tecna.gwt.connectors.client.elements.Shape
@author Kamil Kurek
• shapes.common.Shape
A graphical shape.
• tv.porst.swfretools.parser.structures.Shape
Represents a Shape structure. @author sp
• urban.shapes.Shape
A shape - a connected set of agents.
• urban.urban.Shape
A representation of the model object 'Shape'.

The following features are supported:

@see urban.urban.UrbanPackage#getShape() @model @generated

### Examples of Bridge.Shape

 307308309310311312313314315316317318319320 private static void bridgeDemo() {         System.out.println("BRIDGE DEMO");     System.out.println();         Shape redCircle = new Circle(150,150, 15, new RedCircle());     Shape blueCircle = new Circle(150, 150, 15, new BlueCircle());         //Draw the circles     redCircle.draw();     blueCircle.draw();     System.out.println();       }
View Full Code Here

### Examples of ae.java.awt.Shape

 27822783278427852786278727882789 AffineTransform tx) {         if (tx.isIdentity()) {             return rect;         }         Shape s = transformShape(tx, rect);         return s.getBounds();     }
View Full Code Here

### Examples of ch.blackspirit.graphics.shape.Shape

View Full Code Here

### Examples of chunmap.data.feature.Shape

 303132333435363738394041 }   @Override   public void execute(Feature obj) {     if (obj instanceof Shape) {       Shape feature = (Shape) obj;       Geometry g = feature.getGeometry(); //      if(Log.isDubug()){ //        Log.log(Logger.Debug, "geometry =" +g.getEnvelop()+"envelope="+env.toString()); //      }       if (g == null)         return;
View Full Code Here

### Examples of com.anotherbigidea.flash.movie.Shape

 271272273274275276277278279280281282283284285286287288289290291292293 int[] size = new int[2];        //--open the JPEG           FileInputStream jpegIn = new FileInputStream( fileName );                 Shape image =  ImageUtil.shapeForImage( jpegIn, size );                     int width  = size[0];           int height = size[1];           jpegIn.close();                     //--Add a black border to the image shape (origin is in top left corner)           image.defineLineStyle( 1, null );  //default color is black           image.setLineStyle( 1 );           image.line( width, 0 );           image.line( width, height );           image.line( 0, height );           image.line( 0, 0 );                            //String outputFileName = "output.swf";                               File file = new File(swfFileName);
View Full Code Here

### Examples of com.aspose.words.Shape

 3233343536373839404142434445464748495051525354555657585960 */     private static void insertWatermarkText(Document doc, String watermarkText) throws Exception     {         // Create a watermark shape. This will be a WordArt shape.         // You are free to try other shape types as watermarks.         Shape watermark = new Shape(doc, ShapeType.TEXT_PLAIN_TEXT);         // Set up the text of the watermark.         watermark.getTextPath().setText(watermarkText);         watermark.getTextPath().setFontFamily("Arial");         watermark.setWidth(500);         watermark.setHeight(100);         // Text will be directed from the bottom-left to the top-right corner.         watermark.setRotation(-40);         // Remove the following two lines if you need a solid black text.         watermark.getFill().setColor(Color.GRAY); // Try LightGray to get more Word-style watermark         watermark.setStrokeColor(Color.GRAY); // Try LightGray to get more Word-style watermark         // Place the watermark in the page center.         watermark.setRelativeHorizontalPosition(RelativeHorizontalPosition.PAGE);         watermark.setRelativeVerticalPosition(RelativeVerticalPosition.PAGE);         watermark.setWrapType(WrapType.NONE);         watermark.setVerticalAlignment(VerticalAlignment.CENTER);         watermark.setHorizontalAlignment(HorizontalAlignment.CENTER);         // Create a new paragraph and append the watermark to this paragraph.         Paragraph watermarkPara = new Paragraph(doc);         watermarkPara.appendChild(watermark);
View Full Code Here

### Examples of com.github.jmkgreen.morphia.testmodel.Shape

 45464748495051525354555657585960616263 morphia.map(Circle.class)                 .map(Rectangle.class)                 .map(ShapeShifter.class);         Shape rectangle = new Rectangle(2,5);                 DBObject rectangleDbObj = morphia.toDBObject(rectangle);         shapes.save(rectangleDbObj);         BasicDBObject rectangleDbObjLoaded = (BasicDBObject) shapes.findOne(new BasicDBObject(Mapper.ID_KEY, rectangleDbObj.get(Mapper.ID_KEY)));     Shape rectangleLoaded = morphia.fromDBObject(Shape.class, rectangleDbObjLoaded, new DefaultEntityCache());         assertTrue(rectangle.getArea() == rectangleLoaded.getArea());         assertTrue(rectangleLoaded instanceof Rectangle);         ShapeShifter shifter = new ShapeShifter();         shifter.setReferencedShape(rectangleLoaded);         shifter.setMainShape(new Circle(2.2));
View Full Code Here

 776777778779780781782783 * Gets the current clip in form of a Rectangle.      *      * @return current clip      */     public Rectangle getClipBounds() {         Shape clip = getClip();         return (clip != null) ? getClip().getBounds() : null;     }
View Full Code Here