public class AnnotationFlowLayout extends AbstractAnnotationLayout
pickSupport, stackHandler
Constructor and 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) |
Modifier and Type | Method and Description |
---|---|
protected void |
alignHorizontal(DrawContext dc,
java.awt.Rectangle bounds,
java.awt.Dimension size,
java.lang.String align) |
protected void |
alignVertical(DrawContext dc,
java.awt.Rectangle bounds,
java.awt.Dimension size,
java.lang.String align) |
void |
beginDrawAnnotations(DrawContext dc,
java.awt.Rectangle bounds) |
protected void |
beginHorizontal(DrawContext dc,
java.awt.Rectangle bounds) |
protected void |
beginVertical(DrawContext dc,
java.awt.Rectangle bounds) |
void |
drawAnnotations(DrawContext dc,
java.awt.Rectangle bounds,
java.lang.Iterable<? extends Annotation> annotations,
double opacity,
Position pickPosition) |
protected void |
drawHorizontal(DrawContext dc,
java.awt.Rectangle bounds,
java.lang.Iterable<? extends Annotation> annotations,
double opacity,
Position pickPosition) |
protected void |
drawVertical(DrawContext dc,
java.awt.Rectangle bounds,
java.lang.Iterable<? extends Annotation> annotations,
double opacity,
Position pickPosition) |
java.lang.String |
getAlignment() |
protected static java.lang.String |
getDefaultAlignment(java.lang.String orientation) |
int |
getHorizontalGap() |
java.lang.String |
getOrientation() |
java.awt.Dimension |
getPreferredSize(DrawContext dc,
java.lang.Iterable<? extends Annotation> annotations) |
int |
getVerticalGap() |
protected java.awt.Dimension |
horizontalPreferredSize(DrawContext dc,
java.lang.Iterable<? extends Annotation> annotations) |
void |
setAlignment(java.lang.String alignment) |
void |
setHorizontalGap(int hgap) |
void |
setOrientation(java.lang.String orientation) |
void |
setVerticalGap(int vgap) |
protected java.awt.Dimension |
verticalPerferredSize(DrawContext dc,
java.lang.Iterable<? extends Annotation> annotations) |
drawAnnotation, endDrawAnnotations, getAnnotationSize, getPickSupport, setPickSupport
public AnnotationFlowLayout()
public AnnotationFlowLayout(java.lang.String orientation)
public AnnotationFlowLayout(java.lang.String orientation, int hgap, int vgap)
public AnnotationFlowLayout(java.lang.String orientation, java.lang.String alignment, int hgap, int vgap)
protected void alignHorizontal(DrawContext dc, java.awt.Rectangle bounds, java.awt.Dimension size, java.lang.String align)
protected void alignVertical(DrawContext dc, java.awt.Rectangle bounds, java.awt.Dimension size, java.lang.String align)
public void beginDrawAnnotations(DrawContext dc, java.awt.Rectangle bounds)
beginDrawAnnotations
in interface AnnotationLayoutManager
beginDrawAnnotations
in class AbstractAnnotationLayout
protected void beginHorizontal(DrawContext dc, java.awt.Rectangle bounds)
protected void beginVertical(DrawContext dc, java.awt.Rectangle bounds)
public void drawAnnotations(DrawContext dc, java.awt.Rectangle bounds, java.lang.Iterable<? extends Annotation> annotations, double opacity, Position pickPosition)
protected void drawHorizontal(DrawContext dc, java.awt.Rectangle bounds, java.lang.Iterable<? extends Annotation> annotations, double opacity, Position pickPosition)
protected void drawVertical(DrawContext dc, java.awt.Rectangle bounds, java.lang.Iterable<? extends Annotation> annotations, double opacity, Position pickPosition)
public java.lang.String getAlignment()
protected static java.lang.String getDefaultAlignment(java.lang.String orientation)
public int getHorizontalGap()
public java.lang.String getOrientation()
public java.awt.Dimension getPreferredSize(DrawContext dc, java.lang.Iterable<? extends Annotation> annotations)
public int getVerticalGap()
protected java.awt.Dimension horizontalPreferredSize(DrawContext dc, java.lang.Iterable<? extends Annotation> annotations)
public void setAlignment(java.lang.String alignment)
public void setHorizontalGap(int hgap)
public void setOrientation(java.lang.String orientation)
public void setVerticalGap(int vgap)
protected java.awt.Dimension verticalPerferredSize(DrawContext dc, java.lang.Iterable<? extends Annotation> annotations)