|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.paperclips.AbstractBorderPainter
public abstract class AbstractBorderPainter
Abstract implementation of BorderPainter providing implementation of helper methods.
| Constructor Summary | |
|---|---|
AbstractBorderPainter()
|
|
| Method Summary | |
|---|---|
abstract int |
getBottom(boolean open)
Returns the border inset, in pixels, from the bottom. |
int |
getHeight(boolean topOpen,
boolean bottomOpen)
Returns the sum of the top and bottom border insets. |
abstract int |
getLeft()
Returns the border inset, in pixels, from the left. |
int |
getMaxHeight()
Returns the sum of the maximum top and bottom border insets. |
abstract int |
getRight()
Returns the border inset, in pixels, from the right. |
abstract int |
getTop(boolean open)
Returns the border inset, in pixels, from the top. |
int |
getWidth()
Returns the sum of the left and right border insets. |
abstract void |
paint(org.eclipse.swt.graphics.GC gc,
int x,
int y,
int width,
int height,
boolean topOpen,
boolean bottomOpen)
Paints a border around the specified region. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.paperclips.BorderPainter |
|---|
dispose, getOverlap |
| Constructor Detail |
|---|
public AbstractBorderPainter()
| Method Detail |
|---|
public abstract void paint(org.eclipse.swt.graphics.GC gc,
int x,
int y,
int width,
int height,
boolean topOpen,
boolean bottomOpen)
topOpen and bottomOpen.
paint in interface BorderPaintergc - The graphics context to paint on.x - The x coordinate of the top left corner of the border.y - The y coordinate of the top left corner of the border.width - The width of the border to paintheight - The height of the border to painttopOpen - If true, the top border should be drawn "open," to indicate
that this is the continuation of a border in a previous
iteration. If false, the border should be drawn "closed" to
indicate that this is the first iteration on the BorderPrint's
target.bottomOpen - If true, the bottom border should be drawn "open," to indicate
that the BorderPrint's target was not consumed in this
iteration. If false, the bottom border should be drawn
"closed," to indicate that the BorderPrint's target completed
during this iteration.public abstract int getLeft()
getLeft in interface BorderPainterpublic abstract int getRight()
getRight in interface BorderPainterpublic final int getWidth()
getWidth in interface BorderPainterpublic abstract int getTop(boolean open)
getTop in interface BorderPainteropen - If true, the inset of an open border will be returned. If
false, the inset of a closed border will be returned.
public abstract int getBottom(boolean open)
getBottom in interface BorderPainteropen - If true, the inset of an open border will be returned. If
false, the inset of a closed border will be returned.
public final int getHeight(boolean topOpen,
boolean bottomOpen)
getHeight in interface BorderPaintertopOpen - If true, the inset of an open border will be returned. If
false, the inset of a closed border will be returned.bottomOpen - If true, the inset of an open border will be returned. If
false, the inset of a closed border will be returned.
public final int getMaxHeight()
getMaxHeight in interface BorderPainter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||