Package org.pentaho.di.core
Class NotePadMeta
- java.lang.Object
-
- org.pentaho.di.core.NotePadMeta
-
- All Implemented Interfaces:
Cloneable
,org.pentaho.di.core.gui.GUIPositionInterface
,org.pentaho.di.core.gui.GUISizeInterface
,org.pentaho.di.core.xml.XMLInterface
public class NotePadMeta extends Object implements Cloneable, org.pentaho.di.core.xml.XMLInterface, org.pentaho.di.core.gui.GUIPositionInterface, org.pentaho.di.core.gui.GUISizeInterface
Describes a note displayed on a Transformation, Job, Schema, or Report.- Since:
- 28-11-2003
- Author:
- Matt
-
-
Field Summary
Fields Modifier and Type Field Description static int
COLOR_RGB_BLACK_BLUE
static int
COLOR_RGB_BLACK_GREEN
static int
COLOR_RGB_BLACK_RED
static int
COLOR_RGB_DEFAULT_BG_BLUE
static int
COLOR_RGB_DEFAULT_BG_GREEN
static int
COLOR_RGB_DEFAULT_BG_RED
static int
COLOR_RGB_DEFAULT_BORDER_BLUE
static int
COLOR_RGB_DEFAULT_BORDER_GREEN
static int
COLOR_RGB_DEFAULT_BORDER_RED
int
height
int
width
static String
XML_TAG
-
Constructor Summary
Constructors Constructor Description NotePadMeta()
NotePadMeta(String n, int xl, int yl, int w, int h)
NotePadMeta(String n, int xl, int yl, int w, int h, String fontname, int fontsize, boolean fontbold, boolean fontitalic, int fontColorRed, int fontColorGreen, int fontColorBlue, int backGrounColorRed, int backGrounColorGreen, int backGrounColorBlue, int borderColorRed, int borderColorGreen, int borderColorBlue, boolean drawshadow)
NotePadMeta(Node notepadnode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
void
flipSelected()
Change a selected state to not-selected and vice-versa.int
getBackGroundColorBlue()
int
getBackGroundColorGreen()
int
getBackGroundColorRed()
int
getBorderColorBlue()
int
getBorderColorGreen()
int
getBorderColorRed()
int
getFontColorBlue()
int
getFontColorGreen()
int
getFontColorRed()
String
getFontName()
int
getFontSize()
int
getHeight()
org.pentaho.di.core.gui.Point
getLocation()
String
getNote()
org.pentaho.di.repository.ObjectId
getObjectId()
int
getWidth()
String
getXML()
boolean
hasChanged()
boolean
isDrawShadow()
Change a drawshadow stateboolean
isFontBold()
boolean
isFontItalic()
boolean
isSelected()
void
setBackGroundColorBlue(int blue)
void
setBackGroundColorGreen(int green)
void
setBackGroundColorRed(int red)
void
setBorderColorBlue(int blue)
void
setBorderColorGreen(int green)
void
setBorderColorRed(int red)
void
setChanged()
void
setChanged(boolean ch)
void
setDrawShadow(boolean drawshadow)
void
setFontBold(boolean fontbold)
void
setFontColorBlue(int blue)
void
setFontColorGreen(int green)
void
setFontColorRed(int red)
void
setFontItalic(boolean fontitalic)
void
setFontName(String fontname)
void
setFontSize(int fontsize)
void
setHeight(int height)
void
setLocation(int x, int y)
void
setLocation(org.pentaho.di.core.gui.Point p)
void
setNote(String note)
void
setObjectId(org.pentaho.di.repository.ObjectId id)
void
setSelected(boolean selected)
void
setWidth(int width)
String
toString()
-
-
-
Field Detail
-
XML_TAG
public static final String XML_TAG
- See Also:
- Constant Field Values
-
COLOR_RGB_BLACK_RED
public static final int COLOR_RGB_BLACK_RED
- See Also:
- Constant Field Values
-
COLOR_RGB_BLACK_GREEN
public static final int COLOR_RGB_BLACK_GREEN
- See Also:
- Constant Field Values
-
COLOR_RGB_BLACK_BLUE
public static final int COLOR_RGB_BLACK_BLUE
- See Also:
- Constant Field Values
-
COLOR_RGB_DEFAULT_BG_RED
public static final int COLOR_RGB_DEFAULT_BG_RED
- See Also:
- Constant Field Values
-
COLOR_RGB_DEFAULT_BG_GREEN
public static final int COLOR_RGB_DEFAULT_BG_GREEN
- See Also:
- Constant Field Values
-
COLOR_RGB_DEFAULT_BG_BLUE
public static final int COLOR_RGB_DEFAULT_BG_BLUE
- See Also:
- Constant Field Values
-
COLOR_RGB_DEFAULT_BORDER_RED
public static final int COLOR_RGB_DEFAULT_BORDER_RED
- See Also:
- Constant Field Values
-
COLOR_RGB_DEFAULT_BORDER_GREEN
public static final int COLOR_RGB_DEFAULT_BORDER_GREEN
- See Also:
- Constant Field Values
-
COLOR_RGB_DEFAULT_BORDER_BLUE
public static final int COLOR_RGB_DEFAULT_BORDER_BLUE
- See Also:
- Constant Field Values
-
width
public int width
-
height
public int height
-
-
Constructor Detail
-
NotePadMeta
public NotePadMeta()
-
NotePadMeta
public NotePadMeta(String n, int xl, int yl, int w, int h)
-
NotePadMeta
public NotePadMeta(String n, int xl, int yl, int w, int h, String fontname, int fontsize, boolean fontbold, boolean fontitalic, int fontColorRed, int fontColorGreen, int fontColorBlue, int backGrounColorRed, int backGrounColorGreen, int backGrounColorBlue, int borderColorRed, int borderColorGreen, int borderColorBlue, boolean drawshadow)
-
NotePadMeta
public NotePadMeta(Node notepadnode) throws org.pentaho.di.core.exception.KettleXMLException
- Throws:
org.pentaho.di.core.exception.KettleXMLException
-
-
Method Detail
-
getObjectId
public org.pentaho.di.repository.ObjectId getObjectId()
-
setObjectId
public void setObjectId(org.pentaho.di.repository.ObjectId id)
-
setLocation
public void setLocation(int x, int y)
- Specified by:
setLocation
in interfaceorg.pentaho.di.core.gui.GUIPositionInterface
-
setLocation
public void setLocation(org.pentaho.di.core.gui.Point p)
- Specified by:
setLocation
in interfaceorg.pentaho.di.core.gui.GUIPositionInterface
-
getLocation
public org.pentaho.di.core.gui.Point getLocation()
- Specified by:
getLocation
in interfaceorg.pentaho.di.core.gui.GUIPositionInterface
-
getNote
public String getNote()
- Returns:
- Returns the note.
-
setNote
public void setNote(String note)
- Parameters:
note
- The note to set.
-
setBorderColorRed
public void setBorderColorRed(int red)
- Parameters:
green
- the border red color.
-
setBorderColorGreen
public void setBorderColorGreen(int green)
- Parameters:
green
- the border color green.
-
setBorderColorBlue
public void setBorderColorBlue(int blue)
- Parameters:
green
- the border blue color.
-
setBackGroundColorRed
public void setBackGroundColorRed(int red)
-
setBackGroundColorGreen
public void setBackGroundColorGreen(int green)
-
setBackGroundColorBlue
public void setBackGroundColorBlue(int blue)
-
setFontColorRed
public void setFontColorRed(int red)
- Parameters:
Returns
- the font color red.
-
setFontColorGreen
public void setFontColorGreen(int green)
- Parameters:
Returns
- the font color green.
-
setFontColorBlue
public void setFontColorBlue(int blue)
- Parameters:
Returns
- the font color blue.
-
isSelected
public boolean isSelected()
- Specified by:
isSelected
in interfaceorg.pentaho.di.core.gui.GUIPositionInterface
- Returns:
- Returns the selected.
-
setSelected
public void setSelected(boolean selected)
- Specified by:
setSelected
in interfaceorg.pentaho.di.core.gui.GUIPositionInterface
- Parameters:
selected
- The selected to set.
-
flipSelected
public void flipSelected()
Change a selected state to not-selected and vice-versa.
-
setDrawShadow
public void setDrawShadow(boolean drawshadow)
- Parameters:
drawshadow
- The drawshadow to set.
-
isDrawShadow
public boolean isDrawShadow()
Change a drawshadow state
-
setChanged
public void setChanged()
-
setChanged
public void setChanged(boolean ch)
-
hasChanged
public boolean hasChanged()
-
getXML
public String getXML()
- Specified by:
getXML
in interfaceorg.pentaho.di.core.xml.XMLInterface
-
getHeight
public int getHeight()
- Specified by:
getHeight
in interfaceorg.pentaho.di.core.gui.GUISizeInterface
- Returns:
- the height
-
setHeight
public void setHeight(int height)
- Specified by:
setHeight
in interfaceorg.pentaho.di.core.gui.GUISizeInterface
- Parameters:
height
- the height to set
-
getWidth
public int getWidth()
- Specified by:
getWidth
in interfaceorg.pentaho.di.core.gui.GUISizeInterface
- Returns:
- the width
-
setWidth
public void setWidth(int width)
- Specified by:
setWidth
in interfaceorg.pentaho.di.core.gui.GUISizeInterface
- Parameters:
width
- the width to set
-
getFontName
public String getFontName()
- Returns:
- Returns the font name.
-
setFontName
public void setFontName(String fontname)
- Parameters:
note
- The font name.
-
getFontSize
public int getFontSize()
- Returns:
- Returns the font size.
-
setFontBold
public void setFontBold(boolean fontbold)
- Parameters:
note
- The font bold.
-
isFontBold
public boolean isFontBold()
- Returns:
- Returns the font bold.
-
setFontItalic
public void setFontItalic(boolean fontitalic)
- Parameters:
note
- The font italic.
-
isFontItalic
public boolean isFontItalic()
- Returns:
- Returns the font italic.
-
getBorderColorRed
public int getBorderColorRed()
- Returns:
- Returns the backGround color red.
-
getBorderColorGreen
public int getBorderColorGreen()
- Returns:
- Returns the backGround color green.
-
getBorderColorBlue
public int getBorderColorBlue()
- Returns:
- Returns the backGround color blue.
-
getBackGroundColorRed
public int getBackGroundColorRed()
- Returns:
- Returns the backGround color red.
-
getBackGroundColorGreen
public int getBackGroundColorGreen()
- Returns:
- Returns the backGround color green.
-
getBackGroundColorBlue
public int getBackGroundColorBlue()
- Returns:
- Returns the backGround color blue.
-
getFontColorRed
public int getFontColorRed()
- Returns:
- Returns the font color red.
-
getFontColorGreen
public int getFontColorGreen()
- Returns:
- Returns the font color green.
-
getFontColorBlue
public int getFontColorBlue()
- Returns:
- Returns the font color blue.
-
setFontSize
public void setFontSize(int fontsize)
- Parameters:
note
- The font name.
-
-