public AbstractLegend(){
  setInsets(new Insets2D.Double(10.0));
  sources=new LinkedHashSet<DataSource>();
  background=Color.WHITE;
  borderStroke=new BasicStroke(1f);
  font=Font.decode(null);
  setDrawableFonts(font);
  borderColor=Color.BLACK;
  orientation=Orientation.VERTICAL;
  alignmentX=0.0;
  alignmentY=0.0;
  setGap(new de.erichseifert.gral.graphics.Dimension2D.Double(2.0,0.5));
  symbolSize=new de.erichseifert.gral.graphics.Dimension2D.Double(2.0,2.0);
  setLayout(new StackedLayout(orientation,gap.getWidth(),gap.getHeight()));
  refreshLayout();
}

public AbstractLegend ( ) { setInsets ( new Insets2D . Double ( 10.0 ) ) ; sources = new LinkedHashSet < DataSource > ( ) ; background = Color . WHITE ; borderStroke = new BasicStroke ( 1f ) ; font = Font . decode ( null ) ; setDrawableFonts ( font ) ; borderColor = Color . BLACK ; orientation = Orientation . VERTICAL ; alignmentX = 0.0 ; alignmentY = 0.0 ; setGap ( new de . erichseifert . gral . graphics . Dimension2D . Double ( 2.0 , 0.5 ) ) ; symbolSize = new de . erichseifert . gral . graphics . Dimension2D . Double ( 2.0 , 2.0 ) ; setLayout ( new StackedLayout ( orientation , gap . getWidth ( ) , gap . getHeight ( ) ) ) ; refreshLayout ( ) ; }
initializes a new instance with a default background color , a border , vertical orientation and a gap between the items . the default alignment is set to top - left .
