Bridges-Java  3.4.3
Bridges(Java API)
Public Member Functions | Package Attributes | List of all members
bridges.base.SymbolGroup Class Reference
Inheritance diagram for bridges.base.SymbolGroup:
bridges.base.Symbol

Detailed Description

This class defines a group of Symbols and is part of the bridges::base::SymbolCollection.

One would use SymbolGroup to bundle together a set of Symbol that can be used and placed at one. For instance, one could create a group representing a house and then place that house in a scene.

Setting properties of groups may have surprising consequences. For instance setting the opacity of a SymbolGroup will apply a multiplicative opacity to all the objects in the group, but setting an fill color will only impact the Symbol in the SymbolGroup that do not have a defined fill color.

See also
An example tutorial can be found at https://bridgesuncc.github.io/tutorials/Symbol_Collection.html
Author
Erik Saule
Date
6/22/21

Public Member Functions

 SymbolGroup ()
 
ArrayList< SymbolgetAllSymbols ()
 
void addSymbol (Symbol s)
 
String getShapeType ()
 
void addAllJSON (JSONArray symbol_json, Integer parent)
 
- Public Member Functions inherited from bridges.base.Symbol
 Symbol ()
 
Symbol setLabel (String label)
 
String getLabel ()
 
Symbol setFillColor (String c)
 
Symbol setFillColor (Color c)
 
Color getFillColor ()
 
Symbol setStrokeColor (Color c)
 
Symbol setStrokeColor (String c)
 
Color getStrokeColor ()
 
Symbol 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 ()
 
Symbol setLayer (int layer)
 
Integer getLayer ()
 
float[][] identity (float[][] m)
 
Symbol translate (float tx, float ty)
 
Symbol scale (float s)
 
Symbol scale (float sx, float sy)
 
Symbol rotate (float angle)
 
Symbol scale (float sx, float sy, float px, float py)
 
Symbol rotate (float angle, float px, float py)
 
Symbol setTransform (float a, float b, float c, float d, float e, float f)
 
float[][] getTransform ()
 
JSONObject getJSONRepresentation ()
 

Package Attributes

ArrayList< Symbolal = new ArrayList<Symbol>()
 
- Package Attributes inherited from bridges.base.Symbol
Boolean xform_flag = false
 

Additional Inherited Members

- Protected Attributes inherited from bridges.base.Symbol
String label = null
 
Color fillColor = null
 
Float opacity = null
 
Color strokeColor = null
 
Float strokeWidth = null
 
Integer strokeDash = null
 
Integer layer = null
 
float[] transform = null
 

Constructor & Destructor Documentation

◆ SymbolGroup()

bridges.base.SymbolGroup.SymbolGroup ( )

Create a default symbol object

Member Function Documentation

◆ addAllJSON()

void bridges.base.SymbolGroup.addAllJSON ( JSONArray  symbol_json,
Integer  parent 
)

Reimplemented from bridges.base.Symbol.

◆ addSymbol()

void bridges.base.SymbolGroup.addSymbol ( Symbol  s)

◆ getAllSymbols()

ArrayList<Symbol> bridges.base.SymbolGroup.getAllSymbols ( )

◆ getShapeType()

String bridges.base.SymbolGroup.getShapeType ( )

Get the shape type

Returns
shape type

Reimplemented from bridges.base.Symbol.

Member Data Documentation

◆ al

ArrayList<Symbol> bridges.base.SymbolGroup.al = new ArrayList<Symbol>()
package

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