uci.gef
Class LayerPageBreaks
java.lang.Object
|
+--uci.gef.Layer
|
+--uci.gef.LayerPageBreaks
- public class LayerPageBreaks
- extends Layer
Paint horizontal and vertical lines showing page braks for
printing. This feature is common to many drawing applications
(e.g., MacDraw). LayerPageBreaks is a Layer, just like any other so
it can be composed, hidden, and reordered.
- See Also:
- Serialized Form
| Methods inherited from class uci.gef.Layer |
add,
addEditor,
bringForward,
bringInFrontOf,
bringToFront,
damaged,
deleted,
elements,
elementsIn,
fetHidden,
findLayerNamed,
getContentsEdgesOnly,
getContentsNoEdges,
getEditors,
getGrayed,
getLocked,
getName,
getOnMenu,
getPerspectiveType,
hit,
nodesIn,
paint,
paintGrayContents,
postLoad,
postSave,
preSave,
print,
refreshEditors,
remove,
removeAll,
removeEditor,
reorder,
sendBackward,
sendToBack,
setGrayed,
setHidden,
setLocked,
setName,
setOnMenu,
setPerspectiveType,
toString |
DASH_LENGTH
public final int DASH_LENGTH
- The size of the dashes drawn when the Fig is dashed.
GAP_LENGTH
public final int GAP_LENGTH
_color
protected Color _color
- The color of the grid lines or dots.
_pageSize
protected Dimension _pageSize
- The size of the page in pixels. Needs-More-Work: this is a
hack. To get the true page size I need to start a print job!
LayerPageBreaks
public LayerPageBreaks()
setPageSize
public void setPageSize(Dimension d)
- Set the size of the page in pixels.
getContents
public Vector getContents()
- Overrides:
- getContents in class Layer
presentationFor
public Fig presentationFor(Object obj)
- Overrides:
- presentationFor in class Layer
paintContents
public void paintContents(Graphics g)
- Paint the PageBreaks lines or dots by repeatedly bitblting a
precomputed 'stamp' onto the given Graphics
- Overrides:
- paintContents in class Layer
drawDashedLine
protected int drawDashedLine(Graphics g,
int phase,
int x1,
int y1,
int x2,
int y2)
adjust
public void adjust()
- Toggle whether page break lines are drawn on the screen.
Needs-More-Work: Eventually this will open a dialog box to set
all parameters.
- Overrides:
- adjust in class Layer