NASA World Wind

gov.nasa.worldwind.render
Class AnnotationFlowLayout

java.lang.Object
  extended by gov.nasa.worldwind.render.AbstractAnnotationLayout
      extended by gov.nasa.worldwind.render.AnnotationFlowLayout
All Implemented Interfaces:
AnnotationLayoutManager

public class AnnotationFlowLayout
extends AbstractAnnotationLayout


Field Summary
 
Fields inherited from class gov.nasa.worldwind.render.AbstractAnnotationLayout
pickSupport, stackHandler
 
Constructor Summary
AnnotationFlowLayout()
           
AnnotationFlowLayout(String orientation)
           
AnnotationFlowLayout(String orientation, int hgap, int vgap)
           
AnnotationFlowLayout(String orientation, String alignment, int hgap, int vgap)
           
 
Method Summary
protected  void alignHorizontal(DrawContext dc, Rectangle bounds, Dimension size, String align)
           
protected  void alignVertical(DrawContext dc, Rectangle bounds, Dimension size, String align)
           
 void beginDrawAnnotations(DrawContext dc, Rectangle bounds)
           
protected  void beginHorizontal(DrawContext dc, Rectangle bounds)
           
protected  void beginVertical(DrawContext dc, Rectangle bounds)
           
 void drawAnnotations(DrawContext dc, Rectangle bounds, Iterable<? extends Annotation> annotations, double opacity, Position pickPosition)
           
protected  void drawHorizontal(DrawContext dc, Rectangle bounds, Iterable<? extends Annotation> annotations, double opacity, Position pickPosition)
           
protected  void drawVertical(DrawContext dc, Rectangle bounds, Iterable<? extends Annotation> annotations, double opacity, Position pickPosition)
           
 String getAlignment()
           
protected static String getDefaultAlignment(String orientation)
           
 int getHorizontalGap()
           
 String getOrientation()
           
 Dimension getPreferredSize(DrawContext dc, Iterable<? extends Annotation> annotations)
           
 int getVerticalGap()
           
protected  Dimension horizontalPreferredSize(DrawContext dc, Iterable<? extends Annotation> annotations)
           
 void setAlignment(String alignment)
           
 void setHorizontalGap(int hgap)
           
 void setOrientation(String orientation)
           
 void setVerticalGap(int vgap)
           
protected  Dimension verticalPerferredSize(DrawContext dc, Iterable<? extends Annotation> annotations)
           
 
Methods inherited from class gov.nasa.worldwind.render.AbstractAnnotationLayout
drawAnnotation, endDrawAnnotations, getAnnotationSize, getPickSupport, setPickSupport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationFlowLayout

public AnnotationFlowLayout()

AnnotationFlowLayout

public AnnotationFlowLayout(String orientation)

AnnotationFlowLayout

public AnnotationFlowLayout(String orientation,
                            int hgap,
                            int vgap)

AnnotationFlowLayout

public AnnotationFlowLayout(String orientation,
                            String alignment,
                            int hgap,
                            int vgap)
Method Detail

alignHorizontal

protected void alignHorizontal(DrawContext dc,
                               Rectangle bounds,
                               Dimension size,
                               String align)

alignVertical

protected void alignVertical(DrawContext dc,
                             Rectangle bounds,
                             Dimension size,
                             String align)

beginDrawAnnotations

public void beginDrawAnnotations(DrawContext dc,
                                 Rectangle bounds)
Specified by:
beginDrawAnnotations in interface AnnotationLayoutManager
Overrides:
beginDrawAnnotations in class AbstractAnnotationLayout

beginHorizontal

protected void beginHorizontal(DrawContext dc,
                               Rectangle bounds)

beginVertical

protected void beginVertical(DrawContext dc,
                             Rectangle bounds)

drawAnnotations

public void drawAnnotations(DrawContext dc,
                            Rectangle bounds,
                            Iterable<? extends Annotation> annotations,
                            double opacity,
                            Position pickPosition)

drawHorizontal

protected void drawHorizontal(DrawContext dc,
                              Rectangle bounds,
                              Iterable<? extends Annotation> annotations,
                              double opacity,
                              Position pickPosition)

drawVertical

protected void drawVertical(DrawContext dc,
                            Rectangle bounds,
                            Iterable<? extends Annotation> annotations,
                            double opacity,
                            Position pickPosition)

getAlignment

public String getAlignment()

getDefaultAlignment

protected static String getDefaultAlignment(String orientation)

getHorizontalGap

public int getHorizontalGap()

getOrientation

public String getOrientation()

getPreferredSize

public Dimension getPreferredSize(DrawContext dc,
                                  Iterable<? extends Annotation> annotations)

getVerticalGap

public int getVerticalGap()

horizontalPreferredSize

protected Dimension horizontalPreferredSize(DrawContext dc,
                                            Iterable<? extends Annotation> annotations)

setAlignment

public void setAlignment(String alignment)

setHorizontalGap

public void setHorizontalGap(int hgap)

setOrientation

public void setOrientation(String orientation)

setVerticalGap

public void setVerticalGap(int vgap)

verticalPerferredSize

protected Dimension verticalPerferredSize(DrawContext dc,
                                          Iterable<? extends Annotation> annotations)

NASA World Wind

Hosted by docs.bugaco.com