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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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)
|
|