|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectStyleContent
net.refractions.udig.mapgraphic.scalebar.LocationStyleContent
public class LocationStyleContent
Rectangle indicating Location in device coordinates, w & h in 1/72 of an inch.
Screen Coordinates are used. This naturally changes to Page Coordinates when printed.
The x,y position are considered in a realtive fashion.
The width and height of the Rectangle indicate the requested size in terms of Java's usual one pixel indicates 1/72 of an inch. Appropriate scaling will be needed when page output is requested.
Field Summary | |
---|---|
static java.lang.String |
ID
extension id |
static int |
XPAD_LEFT
|
static int |
XPAD_RIGHT
|
static int |
YPAD_BOTTOM
padding constants |
static int |
YPAD_TOP
|
Constructor Summary | |
---|---|
LocationStyleContent()
Location style holding a rectangle. |
Method Summary | |
---|---|
static java.awt.Rectangle |
createDefaultStyle()
TODO summary sentence for createDefaultStyle ... |
java.lang.Object |
createDefaultStyle(IGeoResource resource,
java.awt.Color colour,
IProgressMonitor monitor)
|
java.lang.Class |
getStyleClass()
|
java.lang.Object |
load(IMemento memento)
|
java.lang.Object |
load(java.net.URL url,
IProgressMonitor monitor)
|
void |
save(IMemento memento,
java.lang.Object style)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ID
public static final int YPAD_BOTTOM
public static final int YPAD_TOP
public static final int XPAD_LEFT
public static final int XPAD_RIGHT
Constructor Detail |
---|
public LocationStyleContent()
Method Detail |
---|
public java.lang.Class getStyleClass()
public java.lang.Object load(IMemento memento)
public void save(IMemento memento, java.lang.Object style)
public java.lang.Object createDefaultStyle(IGeoResource resource, java.awt.Color colour, IProgressMonitor monitor) throws java.io.IOException
java.io.IOException
public java.lang.Object load(java.net.URL url, IProgressMonitor monitor) throws java.io.IOException
java.io.IOException
public static java.awt.Rectangle createDefaultStyle()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |