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 boolean
drawDividingLine
protected boolean
gradientCapable
protected int
orientation
-
Constructor Summary
Constructors Constructor Description AbstractTabRenderer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected java.awt.GradientPaint
buildGradient(java.awt.Rectangle bounds, TabComponent tab)
protected abstract void
draw(java.awt.Graphics g, TabComponent tab)
protected abstract void
drawHorizontal(java.awt.Graphics g, TabComponent tab)
protected abstract void
drawVertical(java.awt.Graphics g, TabComponent tab)
abstract int
getLeadingSpace()
protected int
getOrientation()
abstract int
getPadding()
boolean
isDrawDividingLine()
boolean
isGradientCapable()
void
setDrawDividingLine(boolean drawDividingLine)
void
setGradientCapable(boolean gradientCapable)
void
setOrientation(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)
-
-