|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tigris.gef.base.Layer
org.tigris.gef.base.LayerPageBreaks
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.
Field Summary | |
protected java.awt.Color |
_color
The color of the grid lines or dots. |
protected java.awt.Dimension |
_pageSize
The size of the page in pixels. |
int |
DASH_LENGTH
The size of the dashes drawn when the Fig is dashed. |
int |
GAP_LENGTH
|
Fields inherited from class org.tigris.gef.base.Layer |
_onMenu |
Constructor Summary | |
LayerPageBreaks()
|
Method Summary | |
void |
adjust()
Toggle whether page break lines are drawn on the screen. |
protected int |
drawDashedLine(java.awt.Graphics g,
int phase,
int x1,
int y1,
int x2,
int y2)
|
java.util.Collection |
getContents(java.util.Collection c)
Get the figs that make up this layer. |
void |
paintContents(java.awt.Graphics g)
Paint the PageBreaks lines or dots by repeatedly bitblting a precomputed 'stamp' onto the given Graphics |
org.tigris.gef.presentation.Fig |
presentationFor(java.lang.Object obj)
Given an object from the net-level model (e.g., NetNode or NetPort), reply the graphical depiction of that object in this layer, if there is one. |
void |
setPageSize(java.awt.Dimension d)
Set the size of the page in pixels. |
Methods inherited from class org.tigris.gef.base.Layer |
add, addEditor, bringForward, bringInFrontOf, bringToFront, calcDrawingArea, clone, damageAll, deleted, elements, elementsIn, getContents, getContentsEdgesOnly, getContentsNoEdges, getEditors, getGrayed, getHidden, getLocked, getName, getOnMenu, getPerspectiveType, getScale, hit, isAlwaysOnTop, nodesIn, paint, paint, paintContents, paintGrayContents, postLoad, postSave, preSave, print, refreshEditors, remove, removeAll, removeEditor, reorder, sendBackward, sendToBack, setAlwaysOnTop, setGrayed, setHidden, setLocked, setName, setOnMenu, setPerspectiveType, setScale, toString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public final int DASH_LENGTH
public final int GAP_LENGTH
protected java.awt.Color _color
protected java.awt.Dimension _pageSize
Constructor Detail |
public LayerPageBreaks()
Method Detail |
public void setPageSize(java.awt.Dimension d)
public java.util.Collection getContents(java.util.Collection c)
Layer
getContents
in class Layer
c
- the collection in which to place the edges or null
if a new collection should be created
public org.tigris.gef.presentation.Fig presentationFor(java.lang.Object obj)
Layer
presentationFor
in class Layer
public void paintContents(java.awt.Graphics g)
paintContents
in class Layer
protected int drawDashedLine(java.awt.Graphics g, int phase, int x1, int y1, int x2, int y2)
public void adjust()
adjust
in class Layer
LayerGrid
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |