|
Modelers | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.topcased.modeler.preferences.PageMargin
public class PageMargin
This class is used to store a PageMargin object. It provides facilities methods to handle it. Creation : 16 juin 2005
| Field Summary | |
|---|---|
static PageMargin |
NO_MARGIN
Basic No margin |
static PageMargin |
SMALL_MARGIN
Basic Small margin |
| Constructor Summary | |
|---|---|
PageMargin(java.lang.String value)
The Constructor |
|
PageMargin(java.lang.String name,
int top,
int left,
int bottom,
int right,
boolean isModifiable)
The constructor |
|
| Method Summary | |
|---|---|
int |
getBottom()
Get the bottom margin of the PageMargin |
static PageMargin |
getDefault()
Returns the default page margin from the preference store |
int |
getLeft()
Get the left margin of the PageMargin |
boolean |
getModifiable()
Return true if the PageMargin is modifiable |
java.lang.String |
getName()
Get the name of the PageMargin |
static PageMargin |
getPageMargin(java.lang.String name)
Returns the page margin for the given name from the preference store |
int |
getRight()
Get the right margin of the PageMargin |
int |
getTop()
Get the top margin of the PageMargin |
void |
setBottom(int newValue)
Set the bottom margin of the PageMargin |
void |
setLeft(int newValue)
Set the left margin of the PageMargin |
void |
setModifiable(boolean newValue)
Set the isModifiable parameter |
void |
setName(java.lang.String newName)
Set the name of the PageMargin |
void |
setRight(int newValue)
Set the right margin of the PageMargin |
void |
setTop(int newValue)
Set the top margin of the PageMargin |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final PageMargin NO_MARGIN
public static final PageMargin SMALL_MARGIN
| Constructor Detail |
|---|
public PageMargin(java.lang.String name,
int top,
int left,
int bottom,
int right,
boolean isModifiable)
name - the name of this configurationtop - Top marginleft - Left marginbottom - Bottom marginright - Right marginisModifiable - true if the configuration ca be
changedpublic PageMargin(java.lang.String value)
value - the String value of a PageMargin (ex:"No
Margin;0;0;0;0;false")| Method Detail |
|---|
public static PageMargin getDefault()
public static PageMargin getPageMargin(java.lang.String name)
name - the page margin name
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public void setName(java.lang.String newName)
newName - the new namepublic java.lang.String getName()
public void setTop(int newValue)
newValue - the new top marginpublic int getTop()
public void setLeft(int newValue)
newValue - the new left marginpublic int getLeft()
public void setBottom(int newValue)
newValue - the new bottom marginpublic int getBottom()
public void setRight(int newValue)
newValue - the new right marginpublic int getRight()
public void setModifiable(boolean newValue)
newValue - determine if the PageMargin can be modified by the userpublic boolean getModifiable()
|
Modelers | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.