|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.esdihumboldt.hale.ui.views.styledmap.clip.layout.impl.AbstractDefaultAugmentation
public abstract class AbstractDefaultAugmentation
Base class for layout augmentations.
Field Summary | |
---|---|
static int |
DEFAULT_MARGIN
Default margin in pixels |
Constructor Summary | |
---|---|
AbstractDefaultAugmentation()
|
Method Summary | |
---|---|
protected abstract void |
doPaint(Graphics2D g,
org.jdesktop.swingx.mapviewer.JXMapViewer map,
List<PainterProxy> painters,
int width,
int height)
Paint the layout augmentation. |
protected void |
drawSplitLine(Graphics2D g,
int x1,
int y1,
int x2,
int y2)
Draw a split line. |
protected void |
drawText(Graphics2D g,
String text,
int x,
int y)
Draw a text. |
protected Font |
getFont(Font originalFont)
Get the font to use for augmentation text. |
void |
paint(Graphics2D g,
org.jdesktop.swingx.mapviewer.JXMapViewer map,
List<PainterProxy> painters,
int width,
int height)
Paint the layout augmentation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_MARGIN
Constructor Detail |
---|
public AbstractDefaultAugmentation()
Method Detail |
---|
public final void paint(Graphics2D g, org.jdesktop.swingx.mapviewer.JXMapViewer map, List<PainterProxy> painters, int width, int height)
LayoutAugmentation
paint
in interface LayoutAugmentation
g
- the graphics to paint onmap
- the corresponding map viewerpainters
- the list of layouted painterswidth
- the width of the paint areaheight
- the height of the paint areaLayoutAugmentation.paint(Graphics2D, JXMapViewer, List, int, int)
protected abstract void doPaint(Graphics2D g, org.jdesktop.swingx.mapviewer.JXMapViewer map, List<PainterProxy> painters, int width, int height)
g
- the graphics to paint onmap
- the corresponding map viewerpainters
- the list of layouted painterswidth
- the width of the paint areaheight
- the height of the paint areaprotected Font getFont(Font originalFont)
originalFont
- the original font applied to the graphics
protected void drawText(Graphics2D g, String text, int x, int y)
g
- the graphics contexttext
- the text to drawx
- the x coordinate where the text should be renderedy
- the y coordinate where the text should be renderedprotected void drawSplitLine(Graphics2D g, int x1, int y1, int x2, int y2)
g
- the graphics contextx1
- the x coordinate of the line start pointy1
- the y coordinate of the line start pointx2
- the x coordinate of the line end pointy2
- the y coordinate of the line end point
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |