| Constructor and Description |
|---|
Border() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRefreshListener(RefreshListener listener)
Adds a refresh listener that is called whenever this
Drawable needs to be
redrawn by the GUI. |
int |
getSpaceOnBottom()
Return the border size on the bottom.
|
int |
getSpaceOnLeft()
Return the border size on the left.
|
int |
getSpaceOnRight()
Return the border size on the right.
|
int |
getSpaceOnTop()
Return the border size on the top.
|
void |
paintOn(GraphicContext gc,
PaintInstructions instructions)
Paints the current content onto the graphic context.
|
void |
removeRefreshListener(RefreshListener listener)
Removes a refresh listener that was called whenever this
Drawable needed to
be redrawn by the GUI. |
void |
setSpace(int space)
Sets the border size in all four directions.
|
void |
setSpaceOnBottom(int spaceOnBottom)
Sets the border size on the bottom.
|
void |
setSpaceOnLeft(int spaceOnLeft)
Sets the border size on the left.
|
void |
setSpaceOnRight(int spaceOnRight)
Sets the border size on the right.
|
void |
setSpaceOnTop(int spaceOnTop)
Sets the border size on the top.
|
Area |
snipNecessarySpace(Area existingArea)
This method removes space from the existing area to make room for this part.
|
Border |
space(int newSpace)
Sets the border size in all four directions.
|
Border |
spaceOnBottom(int newSpaceOnBottom)
Sets the border size on the bottom.
|
Border |
spaceOnLeft(int newSpaceOnLeft)
Sets the border size on the left.
|
Border |
spaceOnRight(int newSpaceOnRight)
Sets the border size on the right.
|
Border |
spaceOnTop(int newSpaceOnTop)
Sets the border size on the top.
|
public void paintOn(GraphicContext gc, PaintInstructions instructions)
ChartPartpublic Area snipNecessarySpace(Area existingArea)
ChartPartsnipNecessarySpace in interface ChartPartexistingArea - the area this part could usepublic void addRefreshListener(RefreshListener listener)
DrawableDrawable needs to be
redrawn by the GUI.addRefreshListener in interface Drawablelistener - a listenerpublic void removeRefreshListener(RefreshListener listener)
DrawableDrawable needed to
be redrawn by the GUI. Does nothing if the listener was never added.removeRefreshListener in interface Drawablelistener - a listenerpublic Border space(int newSpace)
newSpace - the spacepublic void setSpace(int space)
space - the spacepublic int getSpaceOnBottom()
public Border spaceOnBottom(int newSpaceOnBottom)
newSpaceOnBottom - the spacepublic void setSpaceOnBottom(int spaceOnBottom)
spaceOnBottom - the spacepublic int getSpaceOnLeft()
public Border spaceOnLeft(int newSpaceOnLeft)
newSpaceOnLeft - the spacepublic void setSpaceOnLeft(int spaceOnLeft)
spaceOnLeft - the spacepublic int getSpaceOnRight()
public Border spaceOnRight(int newSpaceOnRight)
newSpaceOnRight - the spacepublic void setSpaceOnRight(int spaceOnRight)
spaceOnRight - the spacepublic int getSpaceOnTop()
public Border spaceOnTop(int newSpaceOnTop)
newSpaceOnTop - the spacepublic void setSpaceOnTop(int spaceOnTop)
spaceOnTop - the spaceCopyright © 2020. All rights reserved.