Package ro.sync.ecss.conditions
Class ProfilingAttributesPresentingColorsPO
java.lang.Object
ro.sync.ecss.conditions.ProfilingAttributesPresentingColorsPO
- All Implemented Interfaces:
Serializable,Cloneable,PersistentObject
@API(type=EXTENDABLE,
src=PRIVATE)
public class ProfilingAttributesPresentingColorsPO
extends Object
implements PersistentObject
Persistent object containing information about the colors used when presenting the profiling attributes
in the Author page.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ProfilingAttributesPresentingColorsPODefault colors used for profiling. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorProfilingAttributesPresentingColorsPO(int backgroundColor, int nameForegroundColor, int valuesForegroundColor, int borderColor) Constructor. -
Method Summary
-
Field Details
-
DEFAULT_PROFILING_SHOW_ATTRIBUTES_COLORS
Default colors used for profiling.
-
-
Constructor Details
-
ProfilingAttributesPresentingColorsPO
public ProfilingAttributesPresentingColorsPO()Default constructor -
ProfilingAttributesPresentingColorsPO
public ProfilingAttributesPresentingColorsPO(int backgroundColor, int nameForegroundColor, int valuesForegroundColor, int borderColor) Constructor.- Parameters:
backgroundColor- Profiling background color.nameForegroundColor- Profiling attribute name foreground color.valuesForegroundColor- Profiling attribute values foreground color.borderColor- The color of the border that surrounds the profiled content.
-
-
Method Details
-
getNameForegroundColor
public int getNameForegroundColor()- Returns:
- Returns the profiling attribute name foreground color.
-
getValuesForegroundColor
public int getValuesForegroundColor()- Returns:
- Returns the profiling attribute values foreground color.
-
getBackgroundColor
public int getBackgroundColor()- Returns:
- Returns the profiling background color.
-
getBorderColor
public int getBorderColor()- Returns:
- Returns the color of the border that surrounds the profiled content.
-
checkValid
Description copied from interface:PersistentObjectCheck if object is valid to be used. Method is called after it is deserialized from options. If not then throw anInvalidPersistentObjExceptionexception.- Specified by:
checkValidin interfacePersistentObject- Throws:
InvalidPersistentObjException- Thrown when instance is not valid.- See Also:
-
getNotPersistentFieldNames
- Specified by:
getNotPersistentFieldNamesin interfacePersistentObject- Returns:
- The names of the field from this object which should not be serialized.
- See Also:
-
clone
Description copied from interface:PersistentObjectForces all the persistent objects to be cloneable.- Specified by:
clonein interfacePersistentObject- Overrides:
clonein classObject- Returns:
- A clone of this object. The clone and the original are disjunct. They share only immutable objects, like Strings, Integers, etc.
- See Also:
-