Package gov.nasa.worldwind.render
Class AnnotationFlowLayout
- java.lang.Object
-
- gov.nasa.worldwind.render.AbstractAnnotationLayout
-
- 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
Constructors Constructor Description AnnotationFlowLayout()AnnotationFlowLayout(java.lang.String orientation)AnnotationFlowLayout(java.lang.String orientation, int hgap, int vgap)AnnotationFlowLayout(java.lang.String orientation, java.lang.String alignment, int hgap, int vgap)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidalignHorizontal(DrawContext dc, java.awt.Rectangle bounds, java.awt.Dimension size, java.lang.String align)protected voidalignVertical(DrawContext dc, java.awt.Rectangle bounds, java.awt.Dimension size, java.lang.String align)voidbeginDrawAnnotations(DrawContext dc, java.awt.Rectangle bounds)protected voidbeginHorizontal(DrawContext dc, java.awt.Rectangle bounds)protected voidbeginVertical(DrawContext dc, java.awt.Rectangle bounds)voiddrawAnnotations(DrawContext dc, java.awt.Rectangle bounds, java.lang.Iterable<? extends Annotation> annotations, double opacity, Position pickPosition)protected voiddrawHorizontal(DrawContext dc, java.awt.Rectangle bounds, java.lang.Iterable<? extends Annotation> annotations, double opacity, Position pickPosition)protected voiddrawVertical(DrawContext dc, java.awt.Rectangle bounds, java.lang.Iterable<? extends Annotation> annotations, double opacity, Position pickPosition)java.lang.StringgetAlignment()protected static java.lang.StringgetDefaultAlignment(java.lang.String orientation)intgetHorizontalGap()java.lang.StringgetOrientation()java.awt.DimensiongetPreferredSize(DrawContext dc, java.lang.Iterable<? extends Annotation> annotations)intgetVerticalGap()protected java.awt.DimensionhorizontalPreferredSize(DrawContext dc, java.lang.Iterable<? extends Annotation> annotations)voidsetAlignment(java.lang.String alignment)voidsetHorizontalGap(int hgap)voidsetOrientation(java.lang.String orientation)voidsetVerticalGap(int vgap)protected java.awt.DimensionverticalPerferredSize(DrawContext dc, java.lang.Iterable<? extends Annotation> annotations)-
Methods inherited from class gov.nasa.worldwind.render.AbstractAnnotationLayout
drawAnnotation, endDrawAnnotations, getAnnotationSize, getPickSupport, setPickSupport
-
-
-
-
Constructor Detail
-
AnnotationFlowLayout
public AnnotationFlowLayout(java.lang.String orientation, java.lang.String alignment, int hgap, int vgap)
-
AnnotationFlowLayout
public AnnotationFlowLayout(java.lang.String orientation, int hgap, int vgap)
-
AnnotationFlowLayout
public AnnotationFlowLayout(java.lang.String orientation)
-
AnnotationFlowLayout
public AnnotationFlowLayout()
-
-
Method Detail
-
getDefaultAlignment
protected static java.lang.String getDefaultAlignment(java.lang.String orientation)
-
getOrientation
public java.lang.String getOrientation()
-
setOrientation
public void setOrientation(java.lang.String orientation)
-
getAlignment
public java.lang.String getAlignment()
-
setAlignment
public void setAlignment(java.lang.String alignment)
-
getHorizontalGap
public int getHorizontalGap()
-
setHorizontalGap
public void setHorizontalGap(int hgap)
-
getVerticalGap
public int getVerticalGap()
-
setVerticalGap
public void setVerticalGap(int vgap)
-
getPreferredSize
public java.awt.Dimension getPreferredSize(DrawContext dc, java.lang.Iterable<? extends Annotation> annotations)
-
drawAnnotations
public void drawAnnotations(DrawContext dc, java.awt.Rectangle bounds, java.lang.Iterable<? extends Annotation> annotations, double opacity, Position pickPosition)
-
beginDrawAnnotations
public void beginDrawAnnotations(DrawContext dc, java.awt.Rectangle bounds)
- Specified by:
beginDrawAnnotationsin interfaceAnnotationLayoutManager- Overrides:
beginDrawAnnotationsin classAbstractAnnotationLayout
-
horizontalPreferredSize
protected java.awt.Dimension horizontalPreferredSize(DrawContext dc, java.lang.Iterable<? extends Annotation> annotations)
-
verticalPerferredSize
protected java.awt.Dimension verticalPerferredSize(DrawContext dc, java.lang.Iterable<? extends Annotation> annotations)
-
drawHorizontal
protected void drawHorizontal(DrawContext dc, java.awt.Rectangle bounds, java.lang.Iterable<? extends Annotation> annotations, double opacity, Position pickPosition)
-
drawVertical
protected void drawVertical(DrawContext dc, java.awt.Rectangle bounds, java.lang.Iterable<? extends Annotation> annotations, double opacity, Position pickPosition)
-
alignHorizontal
protected void alignHorizontal(DrawContext dc, java.awt.Rectangle bounds, java.awt.Dimension size, java.lang.String align)
-
alignVertical
protected void alignVertical(DrawContext dc, java.awt.Rectangle bounds, java.awt.Dimension size, java.lang.String align)
-
beginHorizontal
protected void beginHorizontal(DrawContext dc, java.awt.Rectangle bounds)
-
beginVertical
protected void beginVertical(DrawContext dc, java.awt.Rectangle bounds)
-
-