Package org.apache.hop.core
Class NotePadMeta
- java.lang.Object
-
- org.apache.hop.core.NotePadMeta
-
- All Implemented Interfaces:
Cloneable,IGuiPosition,IGuiSize
public class NotePadMeta extends Object implements Cloneable, IGuiPosition, IGuiSize
Describes a note displayed on a Pipeline or Workflow.
-
-
Field Summary
Fields Modifier and Type Field Description static intCOLOR_RGB_BLACK_BLUEstatic intCOLOR_RGB_BLACK_GREENstatic intCOLOR_RGB_BLACK_REDstatic intCOLOR_RGB_DEFAULT_BG_BLUEstatic intCOLOR_RGB_DEFAULT_BG_GREENstatic intCOLOR_RGB_DEFAULT_BG_REDstatic intCOLOR_RGB_DEFAULT_BORDER_BLUEstatic intCOLOR_RGB_DEFAULT_BORDER_GREENstatic intCOLOR_RGB_DEFAULT_BORDER_REDintheightintwidthstatic StringXML_TAG
-
Constructor Summary
Constructors Constructor Description NotePadMeta()NotePadMeta(String note, int locationX, int locationY, int width, int height)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)NotePadMeta(NotePadMeta n)NotePadMeta(Node nodePadNode)
-
Method Summary
-
-
-
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 note, int locationX, int locationY, int width, int height)
-
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)
-
NotePadMeta
public NotePadMeta(NotePadMeta n)
-
NotePadMeta
public NotePadMeta(Node nodePadNode) throws HopXmlException
- Throws:
HopXmlException
-
-
Method Detail
-
getXml
public String getXml()
-
setLocation
public void setLocation(int x, int y)- Specified by:
setLocationin interfaceIGuiPosition
-
setLocation
public void setLocation(Point point)
- Specified by:
setLocationin interfaceIGuiPosition
-
getLocation
public Point getLocation()
- Specified by:
getLocationin interfaceIGuiPosition
-
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:
red- the border red color.
-
setBorderColorGreen
public void setBorderColorGreen(int green)
- Parameters:
green- the border color green.
-
setBorderColorBlue
public void setBorderColorBlue(int blue)
- Parameters:
blue- 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)
-
setFontColorGreen
public void setFontColorGreen(int green)
- Parameters:
green- the font color green.
-
setFontColorBlue
public void setFontColorBlue(int blue)
- Parameters:
blue- the font color blue.
-
isSelected
public boolean isSelected()
- Specified by:
isSelectedin interfaceIGuiPosition- Returns:
- Returns the selected.
-
setSelected
public void setSelected(boolean selected)
- Specified by:
setSelectedin interfaceIGuiPosition- Parameters:
selected- The selected to set.
-
flipSelected
public void flipSelected()
Change a selected state to not-selected and vice-versa.
-
clone
public NotePadMeta clone()
-
setChanged
public void setChanged()
-
setChanged
public void setChanged(boolean ch)
-
hasChanged
public boolean hasChanged()
-
setHeight
public void setHeight(int height)
-
setWidth
public void setWidth(int width)
-
getFontName
public String getFontName()
- Returns:
- Returns the font name.
-
setFontName
public void setFontName(String fontname)
- Parameters:
fontname- The font name.
-
getFontSize
public int getFontSize()
- Returns:
- Returns the font size.
-
setFontBold
public void setFontBold(boolean fontbold)
- Parameters:
fontbold- The font bold.
-
isFontBold
public boolean isFontBold()
- Returns:
- Returns the font bold.
-
setFontItalic
public void setFontItalic(boolean fontitalic)
- Parameters:
fontitalic- 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:
fontsize- The font name.
-
-