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
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
int
int
static final String
-
Constructor Summary
ConstructorDescriptionNotePadMeta
(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
Modifier and TypeMethodDescriptionclone()
void
Change a selected state to not-selected and vice-versa.int
int
int
int
int
int
int
int
int
int
int
org.pentaho.di.core.gui.Point
getNote()
org.pentaho.di.repository.ObjectId
int
getWidth()
getXML()
boolean
boolean
Change a drawshadow stateboolean
boolean
boolean
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
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
void
setObjectId
(org.pentaho.di.repository.ObjectId id) void
setSelected
(boolean selected) void
setWidth
(int width) toString()
-
Field Details
-
XML_TAG
- See Also:
-
COLOR_RGB_BLACK_RED
public static final int COLOR_RGB_BLACK_RED- See Also:
-
COLOR_RGB_BLACK_GREEN
public static final int COLOR_RGB_BLACK_GREEN- See Also:
-
COLOR_RGB_BLACK_BLUE
public static final int COLOR_RGB_BLACK_BLUE- See Also:
-
COLOR_RGB_DEFAULT_BG_RED
public static final int COLOR_RGB_DEFAULT_BG_RED- See Also:
-
COLOR_RGB_DEFAULT_BG_GREEN
public static final int COLOR_RGB_DEFAULT_BG_GREEN- See Also:
-
COLOR_RGB_DEFAULT_BG_BLUE
public static final int COLOR_RGB_DEFAULT_BG_BLUE- See Also:
-
COLOR_RGB_DEFAULT_BORDER_RED
public static final int COLOR_RGB_DEFAULT_BORDER_RED- See Also:
-
COLOR_RGB_DEFAULT_BORDER_GREEN
public static final int COLOR_RGB_DEFAULT_BORDER_GREEN- See Also:
-
COLOR_RGB_DEFAULT_BORDER_BLUE
public static final int COLOR_RGB_DEFAULT_BORDER_BLUE- See Also:
-
width
public int width -
height
public int height
-
-
Constructor Details
-
NotePadMeta
public NotePadMeta() -
NotePadMeta
-
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
- Throws:
org.pentaho.di.core.exception.KettleXMLException
-
-
Method Details
-
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
- Returns:
- Returns the note.
-
setNote
- 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 -
clone
-
setChanged
public void setChanged() -
setChanged
public void setChanged(boolean ch) -
hasChanged
public boolean hasChanged() -
toString
-
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
- Returns:
- Returns the font name.
-
setFontName
- 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.
-