Class AbstractTabRenderer
- java.lang.Object
-
- com.inductiveautomation.factorypmi.application.components.tabstrip.AbstractTabRenderer
-
- Direct Known Subclasses:
DemoStyleTabRenderer,FolderStyleTabRenderer,SimpleTabRenderer
public abstract class AbstractTabRenderer extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected booleandrawDividingLineprotected booleangradientCapableprotected intorientation
-
Constructor Summary
Constructors Constructor Description AbstractTabRenderer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected java.awt.GradientPaintbuildGradient(java.awt.Rectangle bounds, TabComponent tab)protected abstract voiddraw(java.awt.Graphics g, TabComponent tab)protected abstract voiddrawHorizontal(java.awt.Graphics g, TabComponent tab)protected abstract voiddrawVertical(java.awt.Graphics g, TabComponent tab)abstract intgetLeadingSpace()protected intgetOrientation()abstract intgetPadding()booleanisDrawDividingLine()booleanisGradientCapable()voidsetDrawDividingLine(boolean drawDividingLine)voidsetGradientCapable(boolean gradientCapable)voidsetOrientation(int orientation)
-
-
-
Method Detail
-
draw
protected abstract void draw(java.awt.Graphics g, TabComponent tab)
-
drawHorizontal
protected abstract void drawHorizontal(java.awt.Graphics g, TabComponent tab)
-
drawVertical
protected abstract void drawVertical(java.awt.Graphics g, TabComponent tab)
-
getPadding
public abstract int getPadding()
-
getLeadingSpace
public abstract int getLeadingSpace()
-
getOrientation
protected int getOrientation()
- Returns:
- the orientation
-
setOrientation
public void setOrientation(int orientation)
- Parameters:
orientation- the orientation to set
-
isDrawDividingLine
public boolean isDrawDividingLine()
-
setDrawDividingLine
public void setDrawDividingLine(boolean drawDividingLine)
-
isGradientCapable
public boolean isGradientCapable()
- Returns:
- the gradientCapable
-
setGradientCapable
public void setGradientCapable(boolean gradientCapable)
- Parameters:
gradientCapable- the gradientCapable to set
-
buildGradient
protected java.awt.GradientPaint buildGradient(java.awt.Rectangle bounds, TabComponent tab)
-
-