Bridges-Java-3.0.1  3.0.1
Bridges(JavaAPI)
Public Member Functions | List of all members
bridges.base.Polygon Class Reference
Inheritance diagram for bridges.base.Polygon:
bridges.base.Polyline bridges.base.Symbol

Detailed Description

This class defines a polygon and is part of the symbol collection. A polygon has a sequence of points (x, y coordinate pairs)

Basic styling such as stroke and fill are defined in the superclass Symbol.

Author
David Burlinson, Kalpathi Subramanian
Date
12/23/18, 7/15/19

Public Member Functions

 Polygon ()
 
 Polygon (ArrayList< Float > pts)
 
String getName ()
 
- Public Member Functions inherited from bridges.base.Polyline
 Polyline ()
 
 Polyline (ArrayList< Float > pts)
 
String getName ()
 
void addPoint (float x, float y)
 
ArrayList< Float > getPoints ()
 
void setPolyline (ArrayList< Float > pts)
 
float [] getDimensions ()
 
JSONObject getJSONRepresentation ()
 
- Public Member Functions inherited from bridges.base.Symbol
 Symbol ()
 
void setLabel (String label)
 
String getLabel ()
 
String getIdentifier ()
 
void setFillColor (Color c)
 
void setFillColor (String c)
 
Color getFillColor ()
 
void setStrokeColor (Color c)
 
Symbol setStrokeColor (String c)
 
Color getStrokeColor ()
 
void setStrokeWidth (float strokewidth)
 This method sets the symbol stroke width. More...
 
float getStrokeWidth ()
 
Symbol setOpacity (float op)
 This method sets the symbol opacity. More...
 
float getOpacity ()
 
Symbol setStrokeDash (int dash)
 
Integer getStrokeDash ()
 
void setLocation (float x, float y)
 
float [] getLocation ()
 
float [] getDimensions ()
 
JSONObject getJSONRepresentation ()
 

Additional Inherited Members

- Protected Member Functions inherited from bridges.base.Symbol
String getShapeType ()
 
void setShapeType (String sh)
 
void translatePoint (float[] pt, float tx, float ty)
 
- Protected Attributes inherited from bridges.base.Symbol
String label = ""
 
Color fillColor = new Color("blue")
 
float opacity = DEFAULT_OPACITY
 
Color strokeColor = new Color("white")
 
float strokeWidth = DEFAULT_STROKEWIDTH
 
Integer strokeDash = DEFAULT_STROKEDASH
 
float locationX = DEFAULT_LOCATIONX
 
float locationY = DEFAULT_LOCATIONY
 

Constructor & Destructor Documentation

◆ Polygon() [1/2]

bridges.base.Polygon.Polygon ( )

Construct a default polygon structure

◆ Polygon() [2/2]

bridges.base.Polygon.Polygon ( ArrayList< Float >  pts)

Construct a polygon with the give set of points

Member Function Documentation

◆ getName()

String bridges.base.Polygon.getName ( )

This method gets the name of the shape

Returns
name shape name

The documentation for this class was generated from the following file: