|
Modelers | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.topcased.modeler.preferences.PageFormat
public class PageFormat
This class is used to store a PageFormat object. It provides facilities methods to handle it. Creation : 16 juin 2005
Field Summary | |
---|---|
static PageFormat |
A0
Basic A0 format |
static PageFormat |
A1
Basic A1 format |
static PageFormat |
A2
Basic A2 format |
static PageFormat |
A3
Basic A3 format |
static PageFormat |
A4
Basic A4 format |
static PageFormat |
A5
Basic A5 format |
Constructor Summary | |
---|---|
PageFormat(java.lang.String value)
The Constructor |
|
PageFormat(java.lang.String name,
int width,
int height,
boolean isModifiable)
The constructor |
Method Summary | |
---|---|
static PageFormat |
getDefault()
Returns the default page format from the preference store |
int |
getHeight()
Get the height of the PageFormat |
boolean |
getModifiable()
Return true if the PageFormat is modifiable |
java.lang.String |
getName()
Get the name of the PageFormat |
static PageFormat |
getPageFormat(java.lang.String name)
Returns the page format for the given name from the preference store |
int |
getWidth()
Get the width of the PageFormat |
void |
setHeight(int newValue)
Set the height of the PageFormat |
void |
setModifiable(boolean newValue)
Set the isModifiable parameter |
void |
setName(java.lang.String newName)
Set the name of the PageFormat |
void |
setWidth(int newValue)
Set the width of the PageFormat |
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 PageFormat A5
public static final PageFormat A4
public static final PageFormat A3
public static final PageFormat A2
public static final PageFormat A1
public static final PageFormat A0
Constructor Detail |
---|
public PageFormat(java.lang.String name, int width, int height, boolean isModifiable)
name
- the name of this configurationwidth
- The page widthheight
- The page heightisModifiable
- true
if the configuration ca be
changedpublic PageFormat(java.lang.String value)
value
- the String value of a PageFormat (ex:"A4;210;297;false")Method Detail |
---|
public static PageFormat getDefault()
public static PageFormat getPageFormat(java.lang.String name)
name
- the page format name
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public void setName(java.lang.String newName)
newName
- the new namepublic java.lang.String getName()
public void setWidth(int newValue)
newValue
- the new widthpublic int getWidth()
public void setHeight(int newValue)
newValue
- the new heightpublic int getHeight()
public void setModifiable(boolean newValue)
newValue
- determine if the PageFormat 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.