|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.xoetrope.optional.layout.GuideSupport
public class GuideSupport
Support object holding the guide information on behalf of a page
Copyright (c) Xoetrope Ltd., 2002-2003
$Revision: 1.12 $
License: see License.txt
| Field Summary | |
|---|---|
static int |
GUIDE_SELECTION_TOLERANCE
the tolerance for guide selection. |
| Constructor Summary | |
|---|---|
GuideSupport(XProject project)
Create a new GuideSupport |
|
| Method Summary | |
|---|---|
void |
addGuide(Guide g)
Add a guide |
java.util.Vector |
getGuideCoords(boolean vert)
Get the guide coordinates |
void |
read(java.lang.String fileName)
Read an included file |
void |
read(XmlElement layoutElement)
Read the guides from an XML element loaded from the page XML. |
void |
setGuideCoords(java.util.Vector coords,
boolean vert)
Set the guide coordinates |
void |
setPageBounds(int x,
int y,
int w,
int h)
Set the dimensions of the page container whos grid is being rendered |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int GUIDE_SELECTION_TOLERANCE
| Constructor Detail |
|---|
public GuideSupport(XProject project)
project - the owner project| Method Detail |
|---|
public void setPageBounds(int x,
int y,
int w,
int h)
x - the x or left coordinatey - the y or top coordinatew - the width dimensionh - the height dimensionpublic java.util.Vector getGuideCoords(boolean vert)
vert - true for the vertical guides
public void setGuideCoords(java.util.Vector coords,
boolean vert)
coords - the coordinatesvert - true for the vertical guidespublic void addGuide(Guide g)
g - the new Guidepublic void read(java.lang.String fileName)
read in interface BuilderSupportfileName - the file to readpublic void read(XmlElement layoutElement)
read in interface BuilderSupportlayoutElement - the layout XML element containing the guide configuration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||