|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.refractions.udig.tools.edit.preferences.PreferenceUtil
public class PreferenceUtil
Provides help for obtaining values that are preferences or will be.
Field Summary | |
---|---|
protected static PreferenceUtil |
instance
|
Constructor Summary | |
---|---|
protected |
PreferenceUtil()
|
Method Summary | |
---|---|
java.awt.Color |
getDrawGeomsFill()
Returns the color used to fill the geoms on the EditBlackboard. |
java.awt.Color |
getDrawGeomsLine()
Returns the color used to draw the outline of geoms on the EditBlackboard. |
java.awt.Color |
getDrawSelectionFillColor()
Returns the color used to fill selected vertices. |
java.awt.Color |
getDrawVertexFillColor()
Returns the color used to fill the non-selected vertices. |
java.awt.Color |
getDrawVertexLineColor()
Returns the color used to draw the boxes around vertices. |
java.awt.Color |
getFeedbackColor()
Returns the color used to draw the shape to show the PostSnapping area. |
short |
getMessageDisplayDelay()
|
java.awt.Color |
getSelectionColor()
Returns the color used to draw the selection area. |
SnapBehaviour |
getSnapBehaviour()
Returns the current preference for snap behaviour. |
int |
getSnappingRadius()
Gets the radius used for post-snapping. |
int |
getVertexRadius()
Returns the radius of a vertex |
boolean |
hideSelectedLayers()
Returns true if selected features should be hidden upon selection. |
static PreferenceUtil |
instance()
|
boolean |
isAdvancedEditingActive()
|
static java.awt.Color |
reduceTransparency(java.awt.Color base,
float factor)
Reduces the transparency of the color by some factor. |
void |
setAdvancedEditingActive(boolean b)
|
void |
setSnapBehaviour(SnapBehaviour behaviour)
|
void |
setSnappingRadius(int newRadius)
Sets the radius used for post-snapping. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static PreferenceUtil instance
Constructor Detail |
---|
protected PreferenceUtil()
Method Detail |
---|
public static PreferenceUtil instance()
public int getVertexRadius()
public java.awt.Color getDrawGeomsLine()
public java.awt.Color getDrawVertexLineColor()
public java.awt.Color getDrawSelectionFillColor()
public void setSnappingRadius(int newRadius)
newRadius
- public int getSnappingRadius()
public java.awt.Color getFeedbackColor()
public java.awt.Color getSelectionColor()
public java.awt.Color getDrawGeomsFill()
public static java.awt.Color reduceTransparency(java.awt.Color base, float factor)
base
- the starting colorfactor
- the amount to reduce by. Should be between 0-1;
public java.awt.Color getDrawVertexFillColor()
public SnapBehaviour getSnapBehaviour()
public void setSnapBehaviour(SnapBehaviour behaviour)
public boolean hideSelectedLayers()
public boolean isAdvancedEditingActive()
public void setAdvancedEditingActive(boolean b)
public short getMessageDisplayDelay()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |